Skip to content

Merge pull request #148 from DanCardin/dc/no-handling #69

Merge pull request #148 from DanCardin/dc/no-handling

Merge pull request #148 from DanCardin/dc/no-handling #69

Workflow file for this run

name: Github Release/Publish PyPi
on:
push:
tags:
- "v*.*.*"
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cappa
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Checkout
uses: actions/checkout@v4
- name: Build dist
run: uvx --from build pyproject-build --installer uv
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1