Skip to content

Commit

Permalink
Deploy docs to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Boomaa23 committed Sep 3, 2024
1 parent 64b1f70 commit 9873ad8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/server-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: server-docs

on:
pull_request:
push:
branches: [main]

permissions:
contents: write

jobs:
server-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme
- name: Sphinx build
run: |
sphinx-build server/docs/source _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/

0 comments on commit 9873ad8

Please sign in to comment.