-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 1003 Bytes
/
gh-pages.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
name: Build GitHub Pages
on:
push:
branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Switch to gh-pages branch and rebase
run: |
git fetch
git checkout gh-pages
git reset --hard main
- name: Download dependencies
run: |
sudo apt install texlive-full dvipng texlive-lang-italian
- name: Build html files
run: |
cd source
for i in *.tex; do htlatex $i; done
cd ..
htlatex index.tex
- name: Set up git
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Commit and Push
run: |
git add .
git commit -m "Auto-deploy html files"
git push --force