Publish Release #16
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: Publish Release | |
env: | |
PYTHON_VERSION: "3.12" | |
on: | |
release: | |
types: [published] | |
jobs: | |
update_docs_for_version_bump: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
with: | |
requirements: "true" | |
test-requirements: "true" | |
docs-requirements: "true" | |
- name: Push documentation changes | |
uses: ./.github/actions/publish-docs-with-mike | |
with: | |
new_version: true | |
build-and-publish-wheel-to-pypi: | |
runs-on: ubuntu-latest | |
environment: "Publish Release" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Build wheel | |
uses: ./.github/actions/build-dist | |
# v1.4.2 release. Using full SHA for security | |
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@79739dc2f2bf6bcfd21ecf9af9f06bd643dbeeae | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |