Skip to content

Commit dc808f5

Browse files
committed
Attach files to release before releasing, so notification includes the files
1 parent 3aa0456 commit dc808f5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ jobs:
1919
with:
2020
job-id: jdk17
2121
arguments: --scan --no-parallel --no-daemon -Prelease build
22-
- name: Publish GitHub Release
23-
id: publish_release
22+
- name: Prepare GitHub Release
23+
id: prepare_release
2424
uses: release-drafter/release-drafter@v5
2525
with:
26-
publish: true
2726
tag: ${{ github.ref_name }}
2827
env:
2928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -32,7 +31,7 @@ jobs:
3231
env:
3332
TAG: ${{ github.ref_name }}
3433
# https://github.com/release-drafter/release-drafter#action-outputs
35-
RELEASE_ID: ${{ steps.publish_release.outputs.release_id }}
34+
RELEASE_ID: ${{ steps.prepare_release.outputs.id }}
3635
with:
3736
# language=JavaScript
3837
script: |
@@ -46,3 +45,11 @@ jobs:
4645
release_id: RELEASE_ID,
4746
data: fs.readFileSync("build/libs/ksar-" + version + "-all.jar")
4847
})
48+
- name: Publish GitHub Release
49+
id: publish_release
50+
uses: release-drafter/release-drafter@v5
51+
with:
52+
publish: true
53+
tag: ${{ github.ref_name }}
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)