Compare commits

...

7 Commits

Author SHA1 Message Date
Felix Ableitner 54195b8726 install libssl 5 months ago
Felix Ableitner 5fb77b726f move to top 5 months ago
Felix Ableitner eb56ce8cbe Merge branch 'main' into reenable-crates-publish 5 months ago
Felix Ableitner 1b6e770a35 fix indent 5 months ago
Felix Ableitner 29adb479a4 fixes 5 months ago
Felix Ableitner fe0617ca52 disable docker release for now 5 months ago
Felix Ableitner 52fa0d05c5 Reenable crates.io releases (fixes #4291) 5 months ago

@ -72,8 +72,7 @@ steps:
commands:
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
- cp cargo-binstall /usr/local/cargo/bin
- cargo binstall -y cargo-machete
- ./cargo-binstall -y cargo-machete
- cargo machete
ignored_files:
@ -108,6 +107,21 @@ steps:
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
when: *slow_check_paths
# using https://github.com/pksunkara/cargo-workspaces
publish_to_crates_io:
image: *rust_image
commands:
# reuse binstall from machete step
- ./cargo-binstall -y cargo-workspaces
- apt install libssl
- 'echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"'
- 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}"
secrets: [cargo_api_token]
when:
event: tag
# make sure api builds with default features (used by other crates relying on lemmy api)
check_api_common_default_features:
image: *rust_image

Loading…
Cancel
Save