@@ -11,49 +11,54 @@ jobs:
11
11
release :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v2
15
- - name : Set up JDK 1.17
16
- uses : actions/setup-java@v1
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v3
16
+ - name : Set up JDK 17
17
+ uses : actions/setup-java@v3
17
18
with :
18
- java-version : 1.17
19
+ distribution : ' zulu'
20
+ java-version : ' 17'
19
21
settings-path : ${{ github.workspace }}
20
22
21
23
- name : Load local Maven repository cache
22
- uses : actions/cache@v2
24
+ uses : actions/cache@v3
23
25
with :
24
26
path : ~/.m2/repository
25
27
key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
26
28
restore-keys : |
27
29
${{ runner.os }}-maven-
30
+
28
31
- name : Set up git
29
32
run : |
30
33
git config --global user.email "[email protected] "
31
34
git config --global user.name "JohnnyQ5"
35
+
32
36
- name : Set version in Maven project
33
37
run : mvn versions:set -DnewVersion=${{ github.event.inputs.versionTag }}
34
38
35
39
- name : Build with Maven
36
- run : VAADIN_OFFLINE_KEY=${{ secrets.VAADIN_SERVER_23_2 }} mvn -B package -Pproduction --file pom.xml
40
+ run : mvn -B package --file pom.xml
37
41
38
42
- name : Create Release Notes
39
43
if : ${{ !startsWith(github.ref, 'refs/tags/')
40
44
&& !( contains(github.event.inputs.versionTag, 'alpha')
41
45
|| contains(github.event.inputs.versionTag, 'beta')
42
46
|| contains(github.event.inputs.versionTag, 'rc')) }}
43
- uses : actions/github-script@v4.0.2
47
+ uses : actions/github-script@v6
44
48
with :
45
49
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
46
50
script : |
47
51
await github.request(`POST /repos/${{ github.repository }}/releases`, {
48
52
tag_name: "${{ github.event.inputs.versionTag }}",
49
53
generate_release_notes: true
50
54
});
55
+
51
56
- name : Create Pre-Release Notes
52
57
if : ${{ !startsWith(github.ref, 'refs/tags/')
53
58
&& ( contains(github.event.inputs.versionTag, 'alpha')
54
59
|| contains(github.event.inputs.versionTag, 'beta')
55
60
|| contains(github.event.inputs.versionTag, 'rc')) }}
56
- uses : actions/github-script@v4.0.2
61
+ uses : actions/github-script@v6
57
62
with :
58
63
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
59
64
script : |
62
67
generate_release_notes: true,
63
68
prerelease: true
64
69
});
70
+
65
71
- name : Publish artefact to QBiC Nexus Repository
66
- run : mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml jar:jar deploy: deploy
72
+ run : mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml deploy
67
73
env :
68
74
MAVEN_REPO_USERNAME : ${{ secrets.NEXUS_USERNAME }}
69
75
MAVEN_REPO_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
81
87
run : git push
82
88
83
89
- name : Open PR with version bump
84
- uses : actions/github-script@v4.0.2
90
+ uses : actions/github-script@v6
85
91
with :
86
92
github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
87
93
script : |
0 commit comments