-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add publishing workflow (triggered by tags) (#248)
- Loading branch information
1 parent
c16591f
commit 06533f2
Showing
4 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
paths: "**/Cargo.toml" | ||
|
||
concurrency: | ||
group: ${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Publish: | ||
if: github.repository_owner == 'gfx-rs' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Publish spirv | ||
run: cargo publish --manifest-path spirv/Cargo.toml --token ${{ secrets.cratesio_token }} | ||
- name: Publish rspirv | ||
run: cargo publish --manifest-path rspirv/Cargo.toml --token ${{ secrets.cratesio_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Prerequisites | ||
|
||
`rspirv` uses `cargo-release` for release management. If you don't have `cargo-release` installed run `cargo install cargo-release`. Publishing to crates.io is handled by a github workflow. | ||
|
||
# Making a new release | ||
|
||
1. If you don't have cargo-release installed run `cargo install cargo-release` | ||
1. To prevent breakage, one should release `spirv` before releasing a new `rspirv` because it has an obvious dependency. | ||
1. For `rspirv` run `cargo release` in the `rspirv` directory, this should follow Semantic Versioning | ||
Order of releases crates is important to prevent breakage. `spirv` should released before `rspirv` because it has an obvious dependency. | ||
|
||
In the corresponding crate directory execute `cargo release <version> -x`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters