Upload pdf as release on new tag
This commit is contained in:
parent
e65f05b121
commit
c2a857a0e8
1 changed files with 10 additions and 6 deletions
16
.github/workflows/compile.yml
vendored
16
.github/workflows/compile.yml
vendored
|
@ -7,6 +7,8 @@ on:
|
|||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
push:
|
||||
branches: [ master ]
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
|
@ -29,10 +31,12 @@ jobs:
|
|||
- name: Compile LaTeX document
|
||||
uses: xu-cheng/latex-action@v2
|
||||
with:
|
||||
root_file: main.tex
|
||||
|
||||
# Uploads resulting file to workflows
|
||||
- uses: actions/upload-artifact@v2
|
||||
root_file: main.tex
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: PDF
|
||||
path: main.pdf
|
||||
files: main.pdf
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue