Skip to content

Release 1.9.1

Release 1.9.1 #27

Workflow file for this run

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