Skip to content

Commit ce6044a

Browse files
committed
ci(publish): trigger on release:published instead of push:tags
_reusable-release-gh.yml now accepts gh-pat and uses it for release creation, so release:published fires. publish.yml reverted to release:published trigger with GITHUB_TOKEN for artifact download.
1 parent dd62c7c commit ce6044a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Publish — Tag push
1+
name: Publish — Release published
22

33
# ---------------------------------------------------------------------------
44
# Publish orchestrator for itl-attestation-sdk
55
#
6-
# Triggered by a tag push — created automatically by ci.yml (auto-tag job).
7-
# No GH_PAT required: GITHUB_TOKEN is used throughout.
6+
# Triggered when a GitHub Release is published (from create-release in ci.yml).
7+
# The release is created with GH_PAT so the release:published event fires.
8+
# Everything else (artifact download, PyPI publish) uses GITHUB_TOKEN only.
89
#
910
# Tag routing:
1011
# vX.Y.Z → PyPI (stable, environment: pypi)
@@ -13,12 +14,11 @@ name: Publish — Tag push
1314
# Authentication: PyPI Trusted Publisher (OIDC) — no API tokens.
1415
# ---------------------------------------------------------------------------
1516
on:
16-
push:
17-
tags:
18-
- "v[0-9]*.[0-9]*.[0-9]*"
17+
release:
18+
types: [published]
1919

2020
concurrency:
21-
group: publish-${{ github.ref_name }}
21+
group: publish-${{ github.event.release.tag_name }}
2222
cancel-in-progress: false
2323

2424
jobs:
@@ -35,7 +35,7 @@ jobs:
3535
- name: Extract version from tag
3636
id: ver
3737
run: |
38-
TAG="${{ github.ref_name }}"
38+
TAG="${{ github.event.release.tag_name }}"
3939
VERSION="${TAG#v}"
4040
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4141
if [[ "$VERSION" == *"-"* ]]; then

0 commit comments

Comments
 (0)