Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
266: ci: add workflow to publish crates to crates.io r=Taowyoo a=Taowyoo This PR add a github action to automate the publish of crates to crates.io. In this PR I added `--dry-run` so we could test it first to avoid anything wrong. And this action need the tag used for creating release follow this syntax: {crate_name}_v{version_value} This workflow depends on the secret `CARGO_REGISTRY_TOKEN` > [Using environments for deployment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment): Then since we need secret to be used to publish new versions to crates.io , GitHub offers Configure environments to set rules before a job can proceed and to limit access to secrets. so jobs that need access to specific secret need approval, more ref: [security-guides/encrypted-secrets](https://docs.github.com/en/github-ae@latest/actions/security-guides/encrypted-secrets) Need owner to add this organization level secret named `CARGO_REGISTRY_TOKEN` with proper access policy! CC: `@jethrogb` `@Goirad` `@chavipuri` Co-authored-by: Yuxiang Cao <[email protected]> Co-authored-by: YxC <[email protected]>
- Loading branch information