Skip to content

Commit

Permalink
added action for releasing document
Browse files Browse the repository at this point in the history
  • Loading branch information
Tale152 committed Jul 20, 2022
1 parent 22db1a0 commit 4bc8c5c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/compile-and-upload-latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build LaTeX document
on:
push:
tags:
- "v*.*.*"

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
args: -pdf -file-line-error -halt-on-error -interaction=nonstopmode --shell-escape
- name: Rename file
run: mv main.pdf "${{ github.event.repository.name }}-${{ github.ref_name }}.pdf"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.event.repository.name }}-${{ github.ref_name }}.pdf

0 comments on commit 4bc8c5c

Please sign in to comment.