-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 877 Bytes
/
publish.yaml
File metadata and controls
39 lines (32 loc) · 877 Bytes
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
name: pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v6.0.2
- name: setup python
uses: actions/setup-python@v6.2.0
with:
python-version: 3.13
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme sphinxcontrib-contentui sphinxcontrib-details-directive sphinx_copybutton furo myst_parser
- name: Sphinx build
run: |
cd pages
make
cp ../workshop.json build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4.0.0
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: pages/build/html
force_orphan: true