Skip to content

Commit 2c3d3ab

Browse files
refine on-tags.yml to have generated release notes
1 parent e3190ff commit 2c3d3ab

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/on-tags.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,19 @@ jobs:
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858

59-
- name: upload-assets
60-
id: upload-release-asset
61-
uses: actions/upload-release-asset@v1
59+
# see https://github.com/ncipollo/release-action
60+
- name: create github release
61+
id: create-github-release
62+
uses: ncipollo/release-action@v1.13.0
6263
with:
63-
upload_url: ${{ steps.create-github-release.outputs.upload_url }}
64-
asset_path: ./${{ steps.create-bosh-release.outputs.file }}
65-
asset_name: ${{ steps.create-bosh-release.outputs.file }}
66-
asset_content_type: application/zip
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
tag: ${{ github.ref }}
65+
draft: false
66+
allowUpdates: false # > indicates if we should update a release if it already exists.
67+
generateReleaseNotes: true
68+
artifacts: ./${{ steps.create-bosh-release.outputs.file }}
69+
artifactContentType: application/zip
70+
artifactErrorsFailBuild: true # > indicates if artifact read or upload errors should fail the build.
71+
6972

7073
# - uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9.1.3: https://github.com/EndBug/add-and-commit/commits/v9.1.3
7174
# with:

0 commit comments

Comments
 (0)