v23.08.0 #13
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] | |
workflow_dispatch: | |
jobs: | |
build_wheels: | |
name: Wheels | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # history required so setuptools_scm can determine version | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- run: python -m pip install --upgrade pip | |
- run: python -m pip install -r requirements/wheels.txt | |
- name: Build wheels | |
run: python -m build | |
- name: Upload wheels | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: dist | |
upload_packages: | |
name: Deploy packages | |
needs: [build_wheels] | |
runs-on: ubuntu-22.04 | |
environment: release | |
permissions: | |
id-token: write | |
if: github.event_name == 'release' && github.event.action == 'published' | |
steps: | |
- uses: actions/download-artifact@v2 | |
- uses: pypa/[email protected] | |
docs: | |
needs: upload_packages | |
uses: ./.github/workflows/docs.yml | |
with: | |
publish: ${{ github.event_name == 'release' && github.event.action == 'published' }} | |
secrets: inherit |