From 1c74cfeaee15055593553b2de9c49a179e5af7cf Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 23 Mar 2026 15:04:21 +0900 Subject: [PATCH 1/2] Add release workflow for connectrpc-otel Signed-off-by: Anuraag Agrawal --- .github/workflows/ci.yaml | 3 +++ .github/workflows/release-otel.yaml | 31 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/release-otel.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc78ad4..7df0cb4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -118,6 +118,9 @@ jobs: - run: uv build + - run: uv build + working-directory: connectrpc-otel + - name: build codegen archives uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0 with: diff --git a/.github/workflows/release-otel.yaml b/.github/workflows/release-otel.yaml new file mode 100644 index 0000000..68b7160 --- /dev/null +++ b/.github/workflows/release-otel.yaml @@ -0,0 +1,31 @@ +name: Release +on: + push: + tags: + - "connectrpc-otel/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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 + + - run: uv sync --frozen + + # Builds into root dist directory + - run: uv build + working-directory: connectrpc-otel + + - name: publish connect-python + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 + with: + skip-existing: true From 90b5eed5deb0dce1508f29ad80949a0f9d57c348 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 23 Mar 2026 22:43:40 +0900 Subject: [PATCH 2/2] Cleanup Signed-off-by: Anuraag Agrawal --- .github/workflows/ci.yaml | 1 + .github/workflows/release-otel.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7df0cb4..2985bea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -118,6 +118,7 @@ jobs: - run: uv build + # Builds to root dist directory so published together with the main project. - run: uv build working-directory: connectrpc-otel diff --git a/.github/workflows/release-otel.yaml b/.github/workflows/release-otel.yaml index 68b7160..71b4d0e 100644 --- a/.github/workflows/release-otel.yaml +++ b/.github/workflows/release-otel.yaml @@ -25,7 +25,7 @@ jobs: - run: uv build working-directory: connectrpc-otel - - name: publish connect-python + - name: publish connectrpc-otel uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 with: skip-existing: true