Skip to content

Commit e489416

Browse files
Deploy content from c64f7ef
0 parents  commit e489416

16 files changed

+1125
-0
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ubuntu-build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup environment
11+
run: |
12+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
13+
sudo apt-get update
14+
sudo apt-get install ninja-build
15+
sudo apt-get install texlive*
16+
- name: Build
17+
run: |
18+
find . -iname '*.tex' -exec pdflatex {} \;
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: pdf-linux
22+
path: '*.pdf'
23+
macos-build:
24+
runs-on: macos-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup environment
28+
run: |
29+
brew install --cask mactex
30+
- name: Build
31+
run: |
32+
eval "$(/usr/libexec/path_helper)"
33+
find . -iname '*.tex' -exec pdflatex {} \;
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: pdf-macos
37+
path: '*.pdf'
38+
deploy-to-github-pages:
39+
needs: ubuntu-build
40+
runs-on: ubuntu-latest
41+
# if: github.ref == 'refs/heads/main'
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Download PDF artifact
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: pdf-linux
48+
path: ./slides-src
49+
- name: Set up Git user
50+
run: |
51+
git config user.name "github-actions[bot]"
52+
git config user.email "github-actions[bot]@users.noreply.github.com"
53+
- name: Switch to github-pages branch
54+
run: |
55+
git checkout deploy/github-pages || git checkout --orphan deploy/github-pages
56+
- name: Copy PDF to github-pages
57+
run: |
58+
find ./slides-src
59+
mkdir ./slides
60+
cp -v ./slides-src/*.pdf ./slides
61+
- name: Commit and push changes
62+
run: |
63+
git add ./slides
64+
if ! git diff-index --quiet HEAD; then
65+
git commit -m "Deploy content from $GITHUB_SHA"
66+
else
67+
echo "No changes to commit"
68+
fi
69+
- name: Push changes
70+
run: |
71+
git push origin deploy/github-pages

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# LaTeX intermediate files
2+
*.aux
3+
*.bbl
4+
*.blg
5+
*.brf
6+
*.idx
7+
*.ilg
8+
*.ind
9+
*.lof
10+
*.log
11+
*.lot
12+
*.nav
13+
*.out
14+
*.snm
15+
*.acn
16+
*.acr
17+
*.alg
18+
*.glg
19+
*.glo
20+
*.gls
21+
*.ist
22+
*.fls
23+
*.fdb_latexmk
24+
*.synctex.gz
25+
*.run.xml
26+
*.bcf
27+
*.vrb
28+
29+
# Editors and IDEs
30+
# VSCode
31+
.vscode/
32+
*.code-workspace
33+
# LaTeX editor files (TeXShop, TeXworks, etc.)
34+
*.pdfsync
35+
*.synctex
36+
*.synctex(busy)
37+
38+
# PDF files (usually generated as output)
39+
*.pdf
40+
41+
# Backup files
42+
*~
43+
*.bak
44+
*.backup
45+
*.tmp
46+
*.swp
47+
*.swo

0 commit comments

Comments
 (0)