Skip to content

Commit f02af54

Browse files
authored
Testing github pages (#2234)
* Testing github pages * Adding libparted-dev to the ubuntu machine (I'd like to move away from ubuntu, but the runner recommended it) * Debugging * changed to master branch
1 parent d62a5ff commit f02af54

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/github-pages.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v3
14+
- name: debug
15+
run: |
16+
whoami
17+
- name: Install pre-dependencies
18+
run: |
19+
sudo apt update && sudo apt install libparted-dev
20+
- name: Install dependencies
21+
run: |
22+
pip install sphinx sphinx_rtd_theme pyparted simple-term-menu
23+
- name: Sphinx build
24+
run: |
25+
sphinx-build docs _build
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
29+
with:
30+
publish_branch: master
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: _build/
33+
force_orphan: true

0 commit comments

Comments
 (0)