File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1818 - name : Checkout
1919 uses : actions/checkout@v3
2020
21- - name : Extract tag name
22- id : extract_tagname
23- shell : bash
24- # Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
25- run : echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
26-
2721 - name : Set up JDK 17
2822 uses : actions/setup-java@v3
2923 with :
3630 output_file : custom_maven_settings.xml
3731 servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
3832 - name : Set version with Maven
39- run : mvn -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
33+ run : mvn -B versions:set -DprocessAllModules=true -DnewVersion=${{ github.ref_name }}
4034 env :
4135 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4236 - name : Deploy with Maven to GitHub Packages
You can’t perform that action at this time.
0 commit comments