-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (40 loc) · 1.17 KB
/
deploy.docs.yml
File metadata and controls
42 lines (40 loc) · 1.17 KB
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
name: Deploy documentation ⚙️
on:
push:
branches:
- main
paths:
- 'workshop/content/**'
jobs:
build:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install requirements 📦
run: |
python -m pip install --upgrade pip
pip install -r workshop/content/requirements.txt
- name: Build site 📦
run: |
cd workshop/content
zensical build --clean --strict
zensical build --strict --config-file zensical.pt.toml
mv site /tmp/
- name: checkout gh-pages branch
uses: actions/checkout@master
with:
ref: gh-pages
- name: Deploy to GitHub Pages 📦
run: |
git checkout gh-pages
git config --global user.email "[email protected]"
git config --global user.name "Tom Kralidis"
ls | grep -v ".nojekyll"| xargs rm -fr
mv -f /tmp/site/* .
git add .
git commit -am "update website via GitHub Actions"
git push