Skip to content

Commit 4c77a43

Browse files
committed
Fix Github release
Signed-off-by: Marios Andreopoulos <[email protected]>
1 parent 29e70fe commit 4c77a43

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/publish-manually.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@ jobs:
2323
- name: Get the tag
2424
id: get_tag
2525
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
26+
- name: Build shadowJar for Github
27+
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} shadowJar
28+
- name: Release to Github
29+
uses: softprops/action-gh-release@v1
30+
with:
31+
files: build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2634
- name: Upload archive
2735
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
2836
- name: Wait for nexus to settle
2937
run: sleep 30
3038
- name: Release archive
3139
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository
32-
- name: Release to Github
33-
uses: softprops/action-gh-release@v1
34-
with:
35-
files: build/libs/*-all.jar
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3840

.github/workflows/publish.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,17 @@ jobs:
2626
- name: Get the tag
2727
id: get_tag
2828
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
29-
- name: Upload archive
30-
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
31-
- name: Wait for nexus to settle
32-
run: sleep 30
33-
- name: Release archive
34-
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository
29+
- name: Build shadowJar for Github
30+
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} shadowJar
3531
- name: Release to Github
3632
uses: softprops/action-gh-release@v1
3733
with:
38-
files: build/libs/*-all.jar
34+
files: build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
3935
env:
4036
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Build and upload jar to nexus
38+
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} signArchives uploadArchives
39+
- name: Wait for nexus to settle
40+
run: sleep 30
41+
- name: Release to nexus
42+
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} closeAndReleaseRepository

0 commit comments

Comments
 (0)