From c53120da086b2793dcb8367324a4870e79581f78 Mon Sep 17 00:00:00 2001 From: Tang Ziya Date: Mon, 19 Feb 2024 12:17:35 +0800 Subject: [PATCH] ADD: GitHub Actions for documentation --- .github/workflows/documentation.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..a8e3be8a --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,23 @@ +name: documentation + +on: [push, pull_request, workflow_dispatch] + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - name: Install dependencies + run: | + pip install sphinx myst_parser + - name: Sphinx build + run: | + sphinx-build docs _build + - name: Deploy to GitHub Pages + uses: actions/upload-pages-artifact@v3 + with: + path: _build