Release 1.9.1 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [ published ] | |
permissions: | |
contents: read | |
jobs: | |
# Build code and docs then deploy to PyPI | |
build-and-publish: | |
name: Upload to PyPI and build docs | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/avwx-engine | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/python-hatch-env | |
- name: Build wheel | |
run: hatch build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- name: Build docs | |
run: hatch run docs:build docs_build | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs_build/ | |
# Deploy the doc build to GitHub pages | |
deploy: | |
needs: build-and-publish | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- id: deployment | |
uses: actions/deploy-pages@v4 |