Skip to content

Commit 7e5d37e

Browse files
Merge pull request #59 from rundeck-plugins/fix-upload-release-asset
Fix release action config to be in accordance with plugin dev guide
2 parents 8302655 + c21780f commit 7e5d37e

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,26 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: set up JDK 11
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v4
2020
with:
2121
java-version: 11
22+
distribution: 'zulu'
2223
- name: Build with Gradle
2324
run: ./gradlew build
2425
- name: Get Release Version
2526
id: get_version
2627
run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION
2728
- name: Create Release
2829
id: create_release
29-
uses: actions/[email protected]
30+
run: |
31+
gh release create \
32+
--generate-notes \
33+
--title 'Release ${{ steps.get_version.outputs.VERSION }}' \
34+
${{ github.ref_name }} \
35+
build/libs/vault-storage-${{ steps.get_version.outputs.VERSION }}.jar
3036
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
with:
33-
tag_name: ${{ github.ref }}
34-
release_name: Release ${{ steps.get_version.outputs.VERSION }}
35-
draft: false
36-
prerelease: false
37-
- name: Upload Release Asset (jar)
38-
id: upload-release-asset
39-
uses: actions/[email protected]
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
with:
43-
upload_url: ${{ steps.create_release.outputs.upload_url }}
44-
asset_path: build/libs/vault-storage-${{ steps.get_version.outputs.VERSION }}.jar
45-
asset_name: vault-storage-${{ steps.get_version.outputs.VERSION }}.jar
46-
asset_content_type: application/octet-stream
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)