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 1m47s
Some checks failed
Build LaTeX Document / build_latex (push) Failing after 1m47s
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -38,6 +38,14 @@ jobs:
|
|||||||
- name: Check for PDF artifact
|
- name: Check for PDF artifact
|
||||||
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
|
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: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
tag: latest
|
||||||
|
assets: ${{ env.PDF_NAME }}
|
||||||
|
|
||||||
- name: Release PDF artifact
|
- name: Release PDF artifact
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
Reference in New Issue
Block a user