Create releasable version #2
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: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
# trusted publishing | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install hatch | |
run: pip install hatch | |
- name: Build package | |
run: hatch build | |
- name: Create release | |
env: | |
GH_TOKEN: ${{ github.token }} | |
tag: ${{ github.ref_name }} | |
run: | | |
gh release create --notes-from-tag "${tag}" dist/* | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@v1 |