diff --git a/.github/workflows/deploy_spinx_docs.yml b/.github/workflows/deploy_spinx_docs.yml new file mode 100644 index 000000000..6bca4ab97 --- /dev/null +++ b/.github/workflows/deploy_spinx_docs.yml @@ -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 }}