Skip to content

Prepare for v0.6.0 (#60) #5

Prepare for v0.6.0 (#60)

Prepare for v0.6.0 (#60) #5

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
id-token: write
attestations: write
contents: write
jobs:
release:
runs-on: ubuntu-24.04
environment: pypi-release
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version-file: "pyproject.toml"
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: protoc-gen-connect-python/go.mod
cache-dependency-path: "**/go.mod"
- run: uv sync --frozen
- run: uv build
- name: build codegen archives
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
version: "~> v2"
args: release --clean
workdir: protoc-gen-connect-python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
uv sync --frozen
uv run python scripts/generate_wheels.py
working-directory: protoc-gen-connect-python
- uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
with:
subject-checksums: out/checksums.txt
- name: publish connect-python
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
skip-existing: true
- name: publish protoc-gen-connect-python
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
packages-dir: protoc-gen-connect-python/dist
skip-existing: true