mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 17:31:02 +00:00
* Reenable crates.io releases (fixes #4291) * disable docker release for now * fixes * fix indent * move to top * install libssl * -y * apt update * debian version * install cargo, git * use cargo install * move to orig position
This commit is contained in:
parent
08b7e0f03d
commit
2b9d89057d
1 changed files with 13 additions and 0 deletions
|
@ -262,6 +262,19 @@ steps:
|
||||||
when:
|
when:
|
||||||
event: cron
|
event: cron
|
||||||
|
|
||||||
|
# using https://github.com/pksunkara/cargo-workspaces
|
||||||
|
publish_to_crates_io:
|
||||||
|
image: *rust_image
|
||||||
|
commands:
|
||||||
|
- '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}"
|
||||||
|
secrets: [cargo_api_token]
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
notify_on_failure:
|
notify_on_failure:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue