ci: run crates.io publish on release tags
This commit is contained in:
parent
376dc2896c
commit
febbd00c27
|
|
@ -92,11 +92,13 @@ publish_ostree-sys:
|
||||||
script:
|
script:
|
||||||
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
||||||
cache: {}
|
cache: {}
|
||||||
when: manual
|
only:
|
||||||
|
- /^ostree-sys\/.+$/
|
||||||
|
|
||||||
publish_ostree:
|
publish_ostree:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
||||||
cache: {}
|
cache: {}
|
||||||
when: manual
|
only:
|
||||||
|
- /^ostree\/.+$/
|
||||||
|
|
|
||||||
|
|
@ -92,9 +92,9 @@ The version needs to be changed in the following places (if applicable):
|
||||||
* in `Cargo.toml` for the main crate version
|
* in `Cargo.toml` for the main crate version
|
||||||
* in `README.md` in the *Installing* section in case of major version bumps
|
* in `README.md` in the *Installing* section in case of major version bumps
|
||||||
|
|
||||||
Then, run the publish jobs on the release commit. Main and -sys crate don't have
|
Then tag the commit as `ostree/x.y.z` and/or `ostree-sys/x.y.z`. This will run
|
||||||
to be released in lockstep. Then tag the commit as `ostree/x.y.z` and/or
|
the crates.io deployment jobs. Main and -sys crate don't have to be released in
|
||||||
`ostree-sys/x.y.z`.
|
lockstep.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
The `ostree` crate is licensed under the MIT license. See the LICENSE file for
|
The `ostree` crate is licensed under the MIT license. See the LICENSE file for
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue