-
Notifications
You must be signed in to change notification settings - Fork 5
Crate release workflows #25
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
Conversation
| override: true | ||
|
|
||
| - name: Publish Crate | ||
| run: cargo publish --package spawned-concurrency --token ${{ secrets.CRATES_IO_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to set a CRATES_IO_TOKEN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@klaus993 please set the LambdaClass one here.
concurrency/Cargo.toml
Outdated
| version = "0.1.0" | ||
| edition = "2021" | ||
| description = "Spawned Concurrency" | ||
| license = "MIT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same license as we are using for the project repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can refer to the workspace components reliably by using version.workspace = true and the like. It's a good idea to do that for all but name and description.
| license = "MIT" | ||
|
|
||
| [dependencies] | ||
| spawned-rt = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to change, we need to import from crates.io instead of locally, as it's forbidden to publish with a workspace dependency.
ElFantasma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
rt/Cargo.toml
Outdated
| version = "0.1.0" | ||
| edition = "2021" | ||
| description = "Spawned Runtime" | ||
| version = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a matter of taste, but I prefer this format
| version = { workspace = true } | |
| version.workspace = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me too, didn't know it was possible, I've changed it
Modify workspace to add CI jobs capable of releasing to crates.io when requested:
spawned-rtand another forspawned-concurrency.package.versionspecified in toml.