-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.02 KB
/
make_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Compile LaTeX and Create Release
on:
push:
tags:
- 'v*' # Trigger the workflow on push of tags like v1.0.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install texlive-full
- name: Compile LaTeX document
run: |
xelatex -output-directory=latex.out OmniView.tex
cd latex.out
makeglossaries OmniView
cd ..
xelatex -output-directory=latex.out OmniView.tex
mv latex.out/OmniView.pdf ./
- name: Upload PDF as Artifact
uses: actions/upload-artifact@v2
with:
name: Compiled-PDF
path: OmniView.pdf
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: OmniView.pdf
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}