Skip to content

release

release #18

Workflow file for this run

name: release
on:
release:
types: [released]
permissions:
contents: write
jobs:
test:
uses: ./.github/workflows/test.yml

Check failure on line 12 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yml" -> "./.github/workflows/test.yml" (source tag with sha:3678860b6a0005b8d64ca49a52bb9822b75b759b) : workflow is not reusable as it is missing a `on.workflow_call` trigger
pypi:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
needs: test
environment: release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system hatch
- name: Build package
run: |
hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1