Skip to content

Commit 43ce9f5

Browse files
committed
on-demand creation of github releases to avoid build failues
1 parent 3802c0f commit 43ce9f5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ jobs:
3737
3838
- name: Create GitHub release
3939
id: release
40-
uses: actions/create-release@v1
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
uses: ncipollo/release-action@v1
4341
with:
44-
tag_name: ${{ env.ARTIFACT_VERSION }}
45-
release_name: ${{ env.ARTIFACT_VERSION }}
42+
tag: ${{ env.ARTIFACT_VERSION }}
43+
name: ${{ env.ARTIFACT_VERSION }}
44+
allowUpdates: true
45+
omitBody: true
46+
omitPrereleaseDuringUpdate: true
47+
token: ${{ secrets.GITHUB_TOKEN }}
4648

4749
- name: Save release upload URL to artifact
4850
run: echo "${{ steps.release.outputs.upload_url }}" > artifacts/release-upload-url

0 commit comments

Comments
 (0)