Skip to content

Release

Release #9

Workflow file for this run

name: Release
on:
workflow_dispatch:
# Disabled to be able to roll multiple breaking releases into one release
# push:
# branches:
# - master
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Python Semantic Release
id: release
# https://github.com/python-semantic-release/python-semantic-release/releases
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}