Skip to content

Commit 8ce20f0

Browse files
authored
Merge pull request #34 from mts-ai/feature/docs-to-gh-pages
Publish docs to GitHub pages
2 parents f27140e + 7fb42e9 commit 8ce20f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://coderefinery.github.io/documentation/gh_workflow/
2+
3+
name: 📖 Docs
4+
on:
5+
- push
6+
- pull_request
7+
- workflow_dispatch
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
docs:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v3
18+
- name: Install dependencies
19+
run: |
20+
pip install sphinx sphinx_rtd_theme
21+
- name: Sphinx build
22+
run: |
23+
sphinx-build docs _build
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
27+
with:
28+
publish_branch: gh-pages
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: _build/
31+
force_orphan: true

0 commit comments

Comments
 (0)