From c777cb0bc11134bdf2b709b99115b7aed417ea69 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Mon, 13 Nov 2023 16:13:42 +0100 Subject: [PATCH] docs: add gh pages workflow --- .github/workflows/deploy-docs.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 000000000..55e13cb63 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,29 @@ +name: Deploy docs + +on: + push: + branches: + - master + +jobs: + build: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Download source + uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install Python dependencies + run: | + python -m pip install --upgrade hatch + - name: Build site + run: hatch -e docs run mkdocs build + - name: Deploy to gh-pages + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: oprypin/push-to-gh-pages@v3 + with: + publish_dir: site + commit_message: 'Generate docs: ' \ No newline at end of file