-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.29 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
'on':
workflow_run:
workflows:
- Test
types:
- completed
env:
JAVA_VERSION: '18'
JAVA_DISTRO: 'temurin'
jobs:
release:
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.project.outputs.VERSION }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
# set up Java
- name: Set up Java 18
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}
cache: maven
- name: Package with Maven
run: >-
mvn --batch-mode -Dcheckstyle.skip -DskipTests package
# github release
- name: Release
uses: jreleaser/release-action@v2
with:
arguments: full-release
env:
JRELEASER_PROJECT_VERSION: 0.1
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
# Upload Artifact
- name: JReleaser output
if: always()
uses: actions/upload-artifact@v4
with:
name: jreleaser-release
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties