Skip to content

Commit 14f43f8

Browse files
authored
Publish compiled pdf in CI.
1 parent 153f91a commit 14f43f8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ jobs:
4444
compiler: bibtex
4545
args:
4646

47+
# Second compilation
48+
- name: Second pdflatex FormalLanguageConstrainedReachabilityLectureNotes
49+
uses: dante-ev/latex-action@latest
50+
with:
51+
working_directory: tex
52+
root_file: FormalLanguageConstrainedReachabilityLectureNotes.tex
53+
compiler: pdflatex
54+
args: -interaction=nonstopmode -shell-escape
55+
4756
# Final compilation
4857
- name: Final pdflatex FormalLanguageConstrainedReachabilityLectureNotes
4958
uses: dante-ev/latex-action@latest
@@ -52,3 +61,20 @@ jobs:
5261
root_file: FormalLanguageConstrainedReachabilityLectureNotes.tex
5362
compiler: pdflatex
5463
args: -interaction=nonstopmode -shell-escape
64+
65+
archive-build-artifacts:
66+
runs-on: ubuntu-latest
67+
steps:
68+
69+
- name: Create a temporary artifact downloads folder
70+
run: mkdir downloads
71+
72+
- name: Add artifacts to publish to the temp folder
73+
run: |
74+
cp tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf downloads/FormalLanguageConstrainedReachabilityLectureNotes.pdf
75+
76+
- name: Use the Upload Artifact GitHub Action
77+
uses: actions/upload-artifact@v2
78+
with:
79+
name: FormalLanguageConstrainedReachabilityLectureNotes_latest
80+
path: downloads

0 commit comments

Comments
 (0)