Skip to content

Commit

Permalink
Delete existing release asset before releasing
Browse files Browse the repository at this point in the history
Use mknejp/delete-release-assets to delete existing asset.
This approach might not be optimal if softprops/action-gh-release
supports upserting [1].

[1] softprops/action-gh-release#134
  • Loading branch information
ekangmonyet committed Aug 1, 2021
1 parent 0fce98f commit 7ee66c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/generate_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7ee66c5

Please sign in to comment.