Skip to content

Commit

Permalink
ci: allow to restart deployment (#375)
Browse files Browse the repository at this point in the history
When the deployment is restarted after having already partialy deployed, the existing artifacts on github block the action from uploading the artifacts to ossrh/mavencentral.
This commit allows the github action to fail, so that the maven central artifacts are uploaded anyway. The downside is that failures to upload to github will not be indicated correctly, but as maven central is our main distribution channel, this should be ok.
  • Loading branch information
wirew0rm authored Mar 5, 2021
1 parent 160a4e2 commit 6d54883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
gpg-passphrase: GPG_PASS
- name: Deploy to Github Packages
run: if [ -z "$CHANGELIST" ]; then mvn -DskipTests --no-transfer-progress --batch-mode -Drevision=${REVISION} -Dchangelist=${CHANGELIST} -Drelease=github deploy; fi
continue-on-error: true # allows to restart the deployment step and not have the existing deployed github package prevent publishing to maven central
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_PASS: ${{ secrets.GPG_PASSPHRASE }}
Expand Down

0 comments on commit 6d54883

Please sign in to comment.