-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (89 loc) · 3.25 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: build
on: [push]
jobs:
build-fullpaper:
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
latexmk -f -pdf -pdflatex="pdflatex -interaction=nonstopmode --shell-escape %O \"\documentclass[fullpaper]{nldl}\renewcommand\documentclass[2][]{}\input{%S}\"" -jobname=main main
- name: Move
run: mkdir -p artifacts && mv main.pdf ./artifacts/fullpaper-draft.pdf
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: fullpaper-draft
path: ./artifacts/fullpaper-draft.pdf
build-abstract:
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
latexmk -f -pdf -pdflatex="pdflatex -interaction=nonstopmode --shell-escape %O \"\documentclass[abstract]{nldl}\renewcommand\documentclass[2][]{}\input{%S}\"" -jobname=main main
- name: Move
run: mkdir -p artifacts && mv main.pdf ./artifacts/abstract-draft.pdf
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: abstract-draft
path: ./artifacts/abstract-draft.pdf
build-fullpaper-final:
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
latexmk -f -pdf -pdflatex="pdflatex -interaction=nonstopmode --shell-escape %O \"\documentclass[fullpaper,final]{nldl}\renewcommand\documentclass[2][]{}\input{%S}\"" -jobname=main main
- name: Move
run: mkdir -p artifacts && mv main.pdf ./artifacts/fullpaper-final.pdf
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: fullpaper-final
path: ./artifacts/fullpaper-final.pdf
build-abstract-final:
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
latexmk -f -pdf -pdflatex="pdflatex -interaction=nonstopmode --shell-escape %O \"\documentclass[abstract,final]{nldl}\renewcommand\documentclass[2][]{}\input{%S}\"" -jobname=main main
- name: Move
run: mkdir -p artifacts && mv main.pdf ./artifacts/abstract-final.pdf
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: abstract-final
path: ./artifacts/abstract-final.pdf
deploy:
needs: [build-fullpaper, build-fullpaper-final, build-abstract, build-abstract-final]
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install zip
run: apt update -qq && apt install -y zip
- name: Zip code
run: zip --junk-paths authorkit.zip main.tex nldl.cls references.bib
- name: Release code
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./authorkit.zip