mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 21:01:23 +00:00
Trying to fix cargo publish 1.
This commit is contained in:
parent
1c258b8b9a
commit
17fe69f938
1 changed files with 13 additions and 14 deletions
|
@ -42,7 +42,7 @@ steps:
|
|||
- git submodule init
|
||||
- git submodule update
|
||||
when:
|
||||
- event: pull_request
|
||||
- event: [pull_request, tag]
|
||||
|
||||
prettier_check:
|
||||
image: tmknom/prettier:3.0.0
|
||||
|
@ -218,18 +218,18 @@ steps:
|
|||
- event: pull_request
|
||||
status: failure
|
||||
|
||||
publish_release_docker:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
secrets: [docker_username, docker_password]
|
||||
settings:
|
||||
repo: dessalines/lemmy
|
||||
dockerfile: docker/Dockerfile
|
||||
platforms: linux/amd64, linux/arm64
|
||||
build_args:
|
||||
- RUST_RELEASE_MODE=release
|
||||
tag: ${CI_COMMIT_TAG}
|
||||
when:
|
||||
- event: tag
|
||||
# publish_release_docker:
|
||||
# image: woodpeckerci/plugin-docker-buildx
|
||||
# secrets: [docker_username, docker_password]
|
||||
# settings:
|
||||
# repo: dessalines/lemmy
|
||||
# dockerfile: docker/Dockerfile
|
||||
# platforms: linux/amd64, linux/arm64
|
||||
# build_args:
|
||||
# - RUST_RELEASE_MODE=release
|
||||
# tag: ${CI_COMMIT_TAG}
|
||||
# when:
|
||||
# - event: tag
|
||||
|
||||
nightly_build:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
|
@ -248,7 +248,6 @@ steps:
|
|||
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"
|
||||
|
|
Loading…
Reference in a new issue