Skip to content

Commit

Permalink
Attach files to release before releasing, so notification includes th…
Browse files Browse the repository at this point in the history
…e files
  • Loading branch information
vlsi committed Jan 29, 2023
1 parent 3aa0456 commit dc808f5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
with:
job-id: jdk17
arguments: --scan --no-parallel --no-daemon -Prelease build
- name: Publish GitHub Release
id: publish_release
- name: Prepare GitHub Release
id: prepare_release
uses: release-drafter/release-drafter@v5
with:
publish: true
tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -32,7 +31,7 @@ jobs:
env:
TAG: ${{ github.ref_name }}
# https://github.com/release-drafter/release-drafter#action-outputs
RELEASE_ID: ${{ steps.publish_release.outputs.release_id }}
RELEASE_ID: ${{ steps.prepare_release.outputs.id }}
with:
# language=JavaScript
script: |
Expand All @@ -46,3 +45,11 @@ jobs:
release_id: RELEASE_ID,
data: fs.readFileSync("build/libs/ksar-" + version + "-all.jar")
})
- name: Publish GitHub Release
id: publish_release
uses: release-drafter/release-drafter@v5
with:
publish: true
tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dc808f5

Please sign in to comment.