From 1ee87ebf8b49ee48714718debc24573e7d352b8a Mon Sep 17 00:00:00 2001 From: danbugs Date: Sat, 27 Jun 2026 08:39:07 +0000 Subject: [PATCH] ci: trigger cargo publish from release workflow GITHUB_TOKEN-created releases don't fire on:release triggers, so dispatch cargo-publish.yml directly from release.yml (same pattern as GHCR image publish). Signed-off-by: danbugs --- .github/workflows/cargo-publish.yml | 2 -- .github/workflows/release.yml | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cargo-publish.yml b/.github/workflows/cargo-publish.yml index e4c6fbf..bb83372 100644 --- a/.github/workflows/cargo-publish.yml +++ b/.github/workflows/cargo-publish.yml @@ -1,8 +1,6 @@ name: Publish to crates.io on: - release: - types: [published] workflow_dispatch: inputs: dry_run: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c846d4e..0cba6e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,3 +56,10 @@ jobs: run: | VERSION="${{ steps.version.outputs.version }}" gh workflow run publish-examples.yml --ref "v$VERSION" + + - name: Trigger crates.io publish + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="${{ steps.version.outputs.version }}" + gh workflow run cargo-publish.yml --ref "v$VERSION" -f dry_run=false