Update deploy-pdf.yml

This commit is contained in:
Leonardo Murça 2024-02-05 13:53:06 -03:00 committed by GitHub
parent 079c324953
commit 5ee4091bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,8 +14,23 @@ jobs:
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
- name: Upload PDF file
uses: actions/upload-artifact@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: PDF
path: main.pdf
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.pdf
asset_name: main.pdf
asset_content_type: pdf