From 598fc26640804cf3b4d12fffa57659d0c116969f Mon Sep 17 00:00:00 2001 From: Yilun Huang Date: Mon, 16 Oct 2023 19:15:35 +0800 Subject: [PATCH] Create deploy_spinx_docs.yml --- .github/workflows/deploy_spinx_docs.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy_spinx_docs.yml 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 }}