Skip to content

Fix badge links and code-workspace filename (#6) #4

Fix badge links and code-workspace filename (#6)

Fix badge links and code-workspace filename (#6) #4

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: "pyproject.toml"
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.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