File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 39
39
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40
40
restore-keys : ${{ runner.os }}-m2
41
41
42
- - name : Extract tag name
43
- if : ${{ steps.release.outputs.release_created }}
44
- id : extract_tagname
45
- shell : bash
46
- # Extract the tag name from the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
47
- run : echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
48
-
49
42
- name : Set up JDK 17
50
43
if : ${{ steps.release.outputs.release_created }}
51
44
uses : actions/setup-java@v4
69
62
with :
70
63
output_file : custom_maven_settings.xml
71
64
servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
72
- - name : Set version with Maven
73
- if : ${{ steps.release.outputs.release_created }}
74
- run : ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
75
- env :
76
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
65
- name : Deploy with Maven to GitHub Packages and Docker Hub
78
66
if : ${{ steps.release.outputs.release_created }}
79
67
run : ./mvnw -B -s custom_maven_settings.xml -Pnative-image,release clean deploy
You can’t perform that action at this time.
0 commit comments