File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 2727 server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
2828 settings-path : ${{ github.workspace }} # location for the settings.xml file
2929
30- - name : Build with Maven
31- run : mvn -B package --file pom.xml
32-
33- - name : Publish to GitHub Packages Apache Maven
34- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
35- env :
36- GITHUB_TOKEN : ${{ github.token }}
37-
3830 - name : Read Maven project version
3931 id : read_version
4032 run : |
5547 else
5648 echo "has_tag=false" >> $GITHUB_OUTPUT
5749 fi
50+
51+ - name : Build with Maven
52+ run : mvn -B package --file pom.xml
53+
54+ - name : Publish to GitHub Packages Apache Maven
55+ if : steps.check_release.outputs.is_snapshot == 'true' || steps.check_release.outputs.is_snapshot == 'false' && steps.check_release.outputs.has_tag == 'true'
56+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
57+ env :
58+ GITHUB_TOKEN : ${{ github.token }}
59+
5860
5961 - name : Set up JDK 1.8 for NERZ-Snapshot-Deployment
6062 uses : actions/setup-java@v3
You can’t perform that action at this time.
0 commit comments