Skip to content

Commit

Permalink
Add publish-docs job to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Cirras committed Nov 6, 2023
1 parent fb0a7b2 commit ad7a983
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,35 @@ jobs:
- name: Push Python artifacts to PyPI
uses: pypa/[email protected]

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

Expand Down

0 comments on commit ad7a983

Please sign in to comment.