9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
+ if : ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
13
+ with :
14
+ ref : " v1"
15
+ - uses : actions/checkout@v2
16
+ if : ${{ startsWith(github.event.release.tag_name, 'v2.') }}
12
17
- name : Set up Java and Maven
13
18
uses : actions/setup-java@v2
14
19
with :
@@ -20,20 +25,25 @@ jobs:
20
25
run : ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
21
26
env :
22
27
RELEASE_VERSION : ${{ github.event.release.tag_name }}
23
- - name : Release Maven package
24
- uses : samuelmeuli/action-maven-publish@v1
25
- with :
26
- maven_profiles : " release"
27
- gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
28
- gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
29
- nexus_username : ${{ secrets.OSSRH_USERNAME }}
30
- nexus_password : ${{ secrets.OSSRH_TOKEN }}
28
+ # - name: Release Maven package
29
+ # uses: samuelmeuli/action-maven-publish@v1
30
+ # with:
31
+ # maven_profiles: "release"
32
+ # gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33
+ # gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
34
+ # nexus_username: ${{ secrets.OSSRH_USERNAME }}
35
+ # nexus_password: ${{ secrets.OSSRH_TOKEN }}
31
36
32
37
# This is separate job because there were issues with git after release step, was not able to commit changes. See history.
33
38
update-working-version :
34
39
runs-on : ubuntu-latest
35
40
steps :
36
41
- uses : actions/checkout@v2
42
+ if : ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
43
+ with :
44
+ ref : " v1"
45
+ - uses : actions/checkout@v2
46
+ if : ${{ startsWith(github.event.release.tag_name, 'v2.') }}
37
47
- name : Set up Java and Maven
38
48
uses : actions/setup-java@v2
39
49
with :
0 commit comments