Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to publish from tags #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hardliner66
Copy link
Contributor

@hardliner66 hardliner66 commented Dec 18, 2023

To enable this workflow you need to generate a login token and store that as a secret here in github. You can generate such a token by logging into crates.io and navigating to https://crates.io/me.

The name of the secret must be CRATES_TOKEN.

When all of that is done, you can push a tag that matches the version inside the Cargo.toml, e.g.: v0.1.0 and the script should automatically start the publishing process.

Currently this uses quite a simple approach, as there's currently only one crate to deploy. Later on, if we add more crates, it would probably better to group crates into a workspace and use tools to manage version bumps and branching. But it should be quite simple to change to that later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant