Skip to content

Release

Release #16

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
next-tag:
type: string
description: The release tag
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@7cdaf2fbc075e6f3b9ca94cfd6cec5adc8a75622 #v4
- name: Set up Python 3.11
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c #v5
with:
python-version: 3.11
- name: Install and configure Poetry
uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b #v1
with:
version: latest
virtualenvs-create: false
- name: Generate Release Notes
id: generate-release-notes
uses: miguelteixeiraa/release-notes-from-pullrequests-action@main
with:
next-tag: ${{ inputs.next-tag }}
- name: Publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
- name: Create GitHub Release
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
with:
tag: "v${{ inputs.next-tag }}"
commit: ${{ github.sha }}
body: ${{ steps.generate-release-notes.outputs.release-notes }}