Explorar o código

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
Ekang Monyet %!s(int64=3) %!d(string=hai) anos
pai
achega
7ee66c559f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      .github/workflows/generate_pdf.yml

+ 7 - 0
.github/workflows/generate_pdf.yml

@@ -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: