Skip to content

Commit d7cecce

Browse files
committed
ci: allow crates.io publish on workflow_dispatch (push-only skipped it)
1 parent 74079ca commit d7cecce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ jobs:
247247
publish-crate:
248248
name: Publish to crates.io
249249
needs: release
250-
if: ${{ github.event_name == 'push' }}
250+
# release-please creates the tag with GITHUB_TOKEN, which does NOT fire a `push` event — so the
251+
# push-only guard skipped publishing. Also allow workflow_dispatch as a manual publish lever:
252+
# `gh workflow run release.yml -f tag=vX.Y.Z`. (Needs CARGO_REGISTRY_TOKEN secret.)
253+
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
251254
runs-on: ubuntu-latest
252255
steps:
253256
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)