Skip to content

Commit 1ba85d9

Browse files
authored
Create manual_publish.yml
1 parent e391930 commit 1ba85d9

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'The version to release'
10+
required: true
11+
default: '1.20.4.Fiserv'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: ./.github/actions/setup-java
23+
24+
- name: Clear existing docker image cache
25+
run: docker image prune -af
26+
27+
- name: Setup Gradle Build Action
28+
uses: gradle/actions/setup-gradle@v3
29+
30+
- name: Set Version
31+
run: echo "VERSION=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_ENV
32+
33+
- name: Run Gradle Build
34+
run: ./gradlew build --scan --no-daemon -i -x test
35+
36+
- name: Create Release Package
37+
run: |
38+
mkdir -p release
39+
cp build/libs/*.jar release/
40+
cp build/publications/mavenJava/*pom* release/
41+
cp build/libs/*.sources.jar release/
42+
cp build/libs/*.javadoc.jar release/
43+
44+
- name: Upload Release Artifacts
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: release-artifacts
48+
path: release/

0 commit comments

Comments
 (0)