Skip to content

Commit

Permalink
Sleep after uploading to Maven to fix transitional state issue
Browse files Browse the repository at this point in the history
Signed-off-by: Marios Andreopoulos <[email protected]>
  • Loading branch information
andmarios committed Nov 6, 2020
1 parent e2b9943 commit 3fdc255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload archive
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
- name: Wait for nexus to settle
run: sleep 30
- name: Release archive
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository
- name: Release to Github
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload archive
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
- name: Wait for nexus to settle
run: sleep 30
- name: Release archive
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository
- name: Release to Github
Expand All @@ -36,4 +38,3 @@ jobs:
files: build/libs/*-all.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3fdc255

Please sign in to comment.