Update deploy-pdf.yml
This commit is contained in:
parent
079c324953
commit
5ee4091bd5
1 changed files with 19 additions and 4 deletions
23
.github/workflows/deploy-pdf.yml
vendored
23
.github/workflows/deploy-pdf.yml
vendored
|
@ -14,8 +14,23 @@ jobs:
|
||||||
uses: xu-cheng/latex-action@v3
|
uses: xu-cheng/latex-action@v3
|
||||||
with:
|
with:
|
||||||
root_file: main.tex
|
root_file: main.tex
|
||||||
- name: Upload PDF file
|
- name: Create Release
|
||||||
uses: actions/upload-artifact@v3
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: PDF
|
tag_name: ${{ github.ref }}
|
||||||
path: main.pdf
|
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
|
||||||
|
|
Loading…
Reference in a new issue