Skip to content

Commit

Permalink
Fix Github release
Browse files Browse the repository at this point in the history
Signed-off-by: Marios Andreopoulos <[email protected]>
  • Loading branch information
andmarios committed Nov 8, 2020
1 parent 29e70fe commit 4c77a43
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish-manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ jobs:
- name: Get the tag
id: get_tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build shadowJar for Github
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} shadowJar
- name: Release to Github
uses: softprops/action-gh-release@v1
with:
files: build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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
uses: softprops/action-gh-release@v1
with:
files: build/libs/*-all.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

16 changes: 9 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ jobs:
- name: Get the tag
id: get_tag
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: Build shadowJar for Github
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} shadowJar
- name: Release to Github
uses: softprops/action-gh-release@v1
with:
files: build/libs/*-all.jar
files: build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and upload jar to nexus
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
- name: Wait for nexus to settle
run: sleep 30
- name: Release to nexus
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository

0 comments on commit 4c77a43

Please sign in to comment.