use cargo install

This commit is contained in:
Felix Ableitner 2023-12-20 12:11:39 +01:00
parent 28b76b2b06
commit b560adb623
2 changed files with 3 additions and 7 deletions

View file

@ -109,14 +109,10 @@ steps:
# using https://github.com/pksunkara/cargo-workspaces
publish_to_crates_io:
# necessary for libssl1.1 requirement of cargo-workspaces binary
image: debian:bullseye-slim
image: *rust_image
commands:
# reuse binstall from machete step
- ./cargo-binstall -y cargo-workspaces
- apt update
- apt install --no-install-recommends --no-install-suggests --yes cargo git
- 'echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"'
- cargo install cargo-workspaces
- cp -r migrations crates/db_schema/
- cargo login "$CARGO_API_TOKEN"
- cargo workspaces publish --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}"

@ -1 +1 @@
Subproject commit 9474a7c0fbc968b8da29251bf5183b7de383cebf
Subproject commit 15815aea74fe97360afc03496b3ad62588649af0