Delete existing release asset before releasing

Use mknejp/delete-release-assets to delete existing asset.
This approach might not be optimal if softprops/action-gh-release
supports upserting [1].

[1] https://github.com/softprops/action-gh-release/pull/134
This commit is contained in:
Ekang Monyet 2021-08-01 20:19:26 +08:00
parent 0fce98f6d2
commit 7ee66c559f

View File

@ -15,6 +15,13 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: make all
- name: Delete old release asset
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
fail-if-no-assets: false
tag: latest
assets: lkmpg.pdf
- name: Release
uses: softprops/action-gh-release@v1
with: