From ad7a983b04be18a0bba431c5dd11a11fd33f7bf7 Mon Sep 17 00:00:00 2001 From: Jonah Jeleniewski Date: Tue, 7 Nov 2023 01:30:07 +1100 Subject: [PATCH] Add `publish-docs` job to release workflow --- .github/workflows/release.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3df316e..02768d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,10 +35,35 @@ jobs: - name: Push Python artifacts to PyPI uses: pypa/gh-action-pypi-publish@v1.8.10 - publish-github: + publish-docs: needs: publish-pypi runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: true + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + + - name: Install Hatch + run: pip install --upgrade hatch + + - name: Get version from tag + id: get-version + uses: battila7/get-version-action@v2 + + - name: Deploy documentation + run: hatch run docs:deploy ${{ steps.get-version.outputs.version-without-v }} + + publish-github: + needs: publish-docs + runs-on: ubuntu-latest + permissions: id-token: write