Upload pdf as release on new tag

This commit is contained in:
Radu C. Martin 2021-07-20 18:15:47 +02:00 committed by GitHub
parent e65f05b121
commit c2a857a0e8

View file

@ -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 ]
@ -31,8 +33,10 @@ jobs:
with:
root_file: main.tex
# Uploads resulting file to workflows
- uses: actions/upload-artifact@v2
- 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 }}