Trying to fix cargo publish 1.

This commit is contained in:
Dessalines 2024-04-03 18:29:07 -04:00
parent 1c258b8b9a
commit 17fe69f938

View file

@ -42,7 +42,7 @@ steps:
- git submodule init - git submodule init
- git submodule update - git submodule update
when: when:
- event: pull_request - event: [pull_request, tag]
prettier_check: prettier_check:
image: tmknom/prettier:3.0.0 image: tmknom/prettier:3.0.0
@ -218,18 +218,18 @@ steps:
- event: pull_request - event: pull_request
status: failure status: failure
publish_release_docker: # publish_release_docker:
image: woodpeckerci/plugin-docker-buildx # image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password] # secrets: [docker_username, docker_password]
settings: # settings:
repo: dessalines/lemmy # repo: dessalines/lemmy
dockerfile: docker/Dockerfile # dockerfile: docker/Dockerfile
platforms: linux/amd64, linux/arm64 # platforms: linux/amd64, linux/arm64
build_args: # build_args:
- RUST_RELEASE_MODE=release # - RUST_RELEASE_MODE=release
tag: ${CI_COMMIT_TAG} # tag: ${CI_COMMIT_TAG}
when: # when:
- event: tag # - event: tag
nightly_build: nightly_build:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
@ -248,7 +248,6 @@ steps:
publish_to_crates_io: publish_to_crates_io:
image: *rust_image image: *rust_image
commands: commands:
- 'echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"'
- cargo install cargo-workspaces - cargo install cargo-workspaces
- cp -r migrations crates/db_schema/ - cp -r migrations crates/db_schema/
- cargo login "$CARGO_API_TOKEN" - cargo login "$CARGO_API_TOKEN"