-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.66 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
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: adnrv/texlive:adntools
strategy:
matrix:
type: [review, final]
paper: [fullpaper, abstract]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
latexmk -f -pdf -pdflatex="pdflatex -interaction=nonstopmode --shell-escape %O \"\documentclass[${{ matrix.paper }},${{ matrix.type }}]{nldl}\renewcommand\documentclass[2][]{}\input{%S}\"" -jobname=main main
- name: Move
run: mv main.pdf ./${{ matrix.paper }}-${{ matrix.type }}.pdf
- name: Upload PDF as artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.paper }}-${{ matrix.type }}
path: ./${{ matrix.paper }}-${{ matrix.type }}.pdf
deploy:
needs: [build]
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: Download PDFs
uses: actions/download-artifact@v3
- name: Zip the PDFs
run: |
zip --junk-paths templates.zip fullpaper-review/fullpaper-review.pdf fullpaper-final/fullpaper-final.pdf abstract-review/abstract-review.pdf abstract-final/abstract-final.pdf
- name: Release code
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./authorkit.zip
./templates.zip