chore/publish-workflow #3

Merged
iuriishikov merged 3 commits from chore/publish-workflow into main 2026-08-19 21:35:55 +00:00
Owner
No description provided.
ci(publish): reusable workflow publishing a crate on a signed tag
Some checks failed
rust-publish.yml / ci(publish): reusable workflow publishing a crate on a signed tag (push) Failing after 0s
smoke / smoke (push) Has been cancelled
b818907dbe
Publication is an act, not a consequence: the workflow answers to a tag and
leaves merges to main alone. Two guards stand before cargo publish, because a
published version is immutable and a wrong number cannot be withdrawn — the tag
must equal the manifest version, and publish must name a shelf rather than being
false or absent.

The registry comes from the manifest's allow-list, so no --registry flag is
passed anywhere and the shelf cannot drift away from what the source declares.
The gate runs with a read-only token; the writing one is scoped to the publish
step alone.
ci(publish): name the writing secret CRATES_WRITE_TOKEN
Some checks failed
rust-publish.yml / ci(publish): name the writing secret CRATES_WRITE_TOKEN (push) Failing after 0s
rust-publish.yml / ci(publish): name the writing secret CRATES_WRITE_TOKEN (pull_request) Failing after 0s
smoke / smoke (push) Successful in 27s
8fc4df287b
Pairs with CRATES_READ_TOKEN and echoes the Forgejo scopes it carries,
read:package and write:package, instead of inventing a third word for the
same idea.
fix(publish): keep the workflow_call block empty
All checks were successful
smoke / smoke (push) Successful in 25s
449b8e0e6f
Forgejo's event detection has no notion of workflow_call, so a non-empty block
produced an event that a plain push matched — the workflow ran on every push to
this repository and failed four times. rust-ci.yml, whose block is empty, never
did. Secrets lose nothing by going undeclared: a called workflow resolves
organisation secrets from the caller's context, exactly as it already resolves
the organisation variable vars.REGISTRY.
iuriishikov deleted branch chore/publish-workflow 2026-08-19 21:35:55 +00:00
iuriishikov referenced this pull request from a commit 2026-08-19 21:35:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
shikos/.forgejo!3
No description provided.