Skip to content

Publish columnar-dbc crates with crates.io trusted publishing #560

Open

Description

@zeroshade

Follow-up from #549 review. The release workflow publishes the columnar-dbc crates with a CARGO_REGISTRY_TOKEN secret in the production environment.

crates.io requires a crate to exist before trusted publishing can be configured, so after the first release:

  • Configure trusted publishing (GitHub Actions, columnar-tech/dbc, release.yml, environment production) for every published crate: columnar-dbc, columnar-dbc-sys, and the five columnar-dbc-sys-<platform> crates.
  • Switch scripts/publish_crates.py / release.yml to obtain a short-lived token with rust-lang/crates-io-auth-action (needs id-token: write on the publishing job).
  • Delete the CARGO_REGISTRY_TOKEN secret and revoke the token on crates.io.
  • Update RELEASE.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions