File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 env :
2828 GITHUB_TOKEN : ${{ github.token }}
2929
30+ # this is nasty! the publish fails as the pom already exists but we only really want to artefact published, so we try to ignore the error
31+ # this is also why the full build is performed in the previous step as we do want that to fail if there are other errors in the build
3032 - name : Publish to GitHub Packages Apache Maven
3133 run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml || echo "Ignoring non-zero result"
3234 env :
Original file line number Diff line number Diff line change 2525 - name : Build with Maven
2626 run : mvn install -s ${{ github.workspace }}\settings.xml --file pom.xml
2727
28+ # this is nasty! the publish fails as the pom already exists but we only really want to artefact published, so we try to ignore the error
29+ # this is also why the full build is performed in the previous step as we do want that to fail if there are other errors in the build
2830 - name : Publish to GitHub Packages Apache Maven
29- run : mvn deploy -s ${{ github.workspace }}\settings.xml --file pom.xml || echo "Ignoring non-zero result" || exit 0
31+ run : mvn deploy -s ${{ github.workspace }}\settings.xml --file pom.xml || echo "Ignoring non-zero result" & exit 0
3032 env :
3133 GITHUB_TOKEN : ${{ github.token }}
3234
You can’t perform that action at this time.
0 commit comments