Skip to content

Commit

Permalink
RUST-1205 Fix macro crate publishing (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn authored Jun 7, 2024
1 parent 92f91cf commit 00d95c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .evergreen/release-build-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if [[ "${DRY_RUN:-}" == "yes" ]]; then
fi

cat <<EOT >release-expansion.yml
CARGO_REGISTRY_TOKEN: "${CARGO_REGISTRY_TOKEN}"
CRATE_VERSION: "${CRATE_VERSION}"
PAPERTRAIL_KEY_ID: "${PAPERTRAIL_KEY_ID}"
PAPERTRAIL_SECRET_KEY: "${PAPERTRAIL_SECRET_KEY}"
Expand Down
8 changes: 4 additions & 4 deletions .evergreen/release-danger-do-not-run-manually.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ set +x

set -o errexit

if [[ -z "$CRATES_IO_TOKEN" ]]; then
echo >&2 "\$CRATES_IO_TOKEN must be set to the crates.io authentication token"
if [[ -z "$CARGO_REGISTRY_TOKEN" ]]; then
echo >&2 "\$CARGO_REGISTRY_TOKEN must be set to the crates.io authentication token"
exit 1
fi

Expand All @@ -32,7 +32,7 @@ if [[ "${PACKAGE_ONLY}" == "yes" ]]; then
cargo package --no-verify --allow-dirty
else
pushd macros
cargo publish --token $CRATES_IO_TOKEN ${EXTRA}
cargo publish ${EXTRA}
popd
cargo publish --token $CRATES_IO_TOKEN ${EXTRA}
cargo publish ${EXTRA}
fi
1 change: 1 addition & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "mongodb-internal-macros"
description = "Internal macros for the mongodb crate"
version = "3.0.0-beta"
edition = "2021"
license = "Apache-2.0"
Expand Down

0 comments on commit 00d95c3

Please sign in to comment.