Skip to content

Release

Release #3

Workflow file for this run

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/[email protected]