feat: add workflow step to delete old release assets before releasing new PDF artifact
Some checks failed
Build LaTeX Document / build_latex (push) Failing after 2m0s

This commit is contained in:
2025-02-10 14:02:10 +01:00
parent 2f5120d38c
commit 2e7de9f7ba

View File

@@ -38,6 +38,14 @@ jobs:
- name: Check for PDF artifact
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
- name: Delete old release assets
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.RELEASE_TOKEN }}
tag: latest
assets: ${{ env.PDF_NAME }}
- name: Release PDF artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2