Skip to content

Commit 334f4c5

Browse files
committed
Implement CI build
1 parent 0509688 commit 334f4c5

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Document
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-latex:
10+
runs-on: ubuntu-24.04
11+
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Build container image
20+
run: |
21+
docker build \
22+
-f .devcontainer/Dockerfile \
23+
-t thesis-builder:ci \
24+
.
25+
26+
- name: Run latexmk inside container
27+
run: |
28+
docker run --rm \
29+
-v "$GITHUB_WORKSPACE":/workspace \
30+
-w /workspace \
31+
thesis-builder:ci \
32+
latexmk
33+
34+
- name: Upload dist PDFs
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: dist-pdfs
38+
path: dist/**/*.pdf
39+
if-no-files-found: error

0 commit comments

Comments
 (0)