Skip to content

RUST-1205 Fix macro crate publishing #1127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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