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
12
.github/workflows/compile.yml
vendored
12
.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
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
tags:
|
||||||
|
- 'v*.*.*'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
@ -31,8 +33,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
root_file: main.tex
|
root_file: main.tex
|
||||||
|
|
||||||
# Uploads resulting file to workflows
|
- name: Release
|
||||||
- uses: actions/upload-artifact@v2
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: PDF
|
files: main.pdf
|
||||||
path: main.pdf
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue