Skip to content

Update pypi github action #17

Update pypi github action

Update pypi github action #17

Workflow file for this run

name: PyPI
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and check package
uses: hynek/build-and-inspect-python-package@v2
release:
name: Publish to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
needs: build
permissions:
id-token: write
steps:
- name: Collect artefacts from build
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1