Skip to content

Commit 013c7a8

Browse files
authored
Merge pull request #41 from cmu-delphi/rzatserkovnyi/github-pages-test
Add GitHub Pages workflow
2 parents f87256e + 71cfa56 commit 013c7a8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/documentation.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
docs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
- name: Install dependencies
18+
run: |
19+
python3.8 -m venv .venv
20+
.venv/bin/python -m pip install --upgrade pip
21+
.venv/bin/pip install -e ".[dev]"
22+
- uses: siacodelabs/setup-pandoc@v1
23+
- name: Sphinx build
24+
run: |
25+
.venv/bin/sphinx-build -b html docs docs/_build
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
publish_branch: gh-pages
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: docs/_build/
32+
force_orphan: true

0 commit comments

Comments
 (0)