Skip to content

Commit

Permalink
Create deploy_spinx_docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HYLcool authored Oct 16, 2023
1 parent 0ecc98e commit 598fc26
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_spinx_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Sphinx documentation to Pages

on:
release:
types: [published]
workflow_dispatch:

jobs:
pages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python_version: ${{ matrix.python-version }}
- id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: ./docs/spinx_doc/source
python_version: ${{ matrix.python-version }}
publish: false
requirements_path: ./environments/dev_requires.txt
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 comments on commit 598fc26

Please sign in to comment.