-
Notifications
You must be signed in to change notification settings - Fork 1.2k
52 lines (47 loc) · 1.41 KB
/
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
44
45
46
47
48
49
50
51
52
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install TeX
run: |
sudo apt update
sudo apt install -y \
dvipng \
latexmk \
texlive-latex-extra \
texlive-fonts-extra \
texlive-extra-utils
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r requirements.txt
- name: "Build PDF & HTML"
run: |
make pdf
make html
mv \
ScientificPythonLectures.pdf \
ScientificPythonLectures-simple.pdf \
build/html/_downloads
echo -n 'lectures.scientific-python.org' > build/html/CNAME
touch build/html/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: scipy-lectures/lectures.scientific-python.org
publish_branch: gh-pages
publish_dir: ./build/html
force_orphan: true
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"