-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (32 loc) · 862 Bytes
/
main.yml
File metadata and controls
40 lines (32 loc) · 862 Bytes
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ created ]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Compile LaTeX document
uses: dante-ev/latex-action@v0.2.0
with:
root_file: sbol3.tex
- name: Move PDF
run: mkdir -p output && cp sbol3.pdf output
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: PDF
path: output
- if: github.event_name == 'release'
name: Upload PDF as release artifact
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: output/sbol3.pdf