Skip to content

Commit a2ac155

Browse files
authored
Create github-pages2.yml
1 parent f02af54 commit a2ac155

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/github-pages2.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+
container:
12+
image: archlinux:latest
13+
options: --privileged
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v3
17+
- name: debug
18+
run: |
19+
whoami
20+
- name: Install pre-dependencies
21+
run: |
22+
pacman -Sy --noconfirm python-pyparted python-simple-term-menu python-setuptools python-sphinx python-sphinx_rtd_theme python-build python-installer python-wheel
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: Torxed-patch-1
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: _build/
33+
force_orphan: true

0 commit comments

Comments
 (0)