Skip to content

Commit 9da3d09

Browse files
authored
minor: fix release script and instructions (#36)
1 parent 7201421 commit 9da3d09

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

RELEASING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ New versions of both the `mongocrypt-sys` and `mongocrypt` crates can be release
55
1. When publishing the `mongocrypt` crate, push a change updating the `mongocrypt-sys` and `bson` dependencies to the most recent published versions.
66
1. Create a tag combining the crate name and version to be published, e.g. `mongocrypt-sys-0.1`. If pushing both crates, create two tags (they can point to the same commit).
77
1. Push the tag(s) upstream.
8-
1. Run the publish script with the `VERSION`, `TOKEN`, and `CRATE` variables:
8+
1. Run the publish script:
99

10+
CRATE=<mongocrypt | mongocrypt-sys> \
1011
VERSION=<version to be published> \
12+
# The following should be retreived from the driver secrets:
1113
TOKEN=<crates.io auth token> \
1214
ARTIFACTORY_USERNAME=<artifactory username> \
1315
ARTIFACTORY_PASSWORD=<artifactory password> \
1416
GARASIGN_USERNAME=<garasign username> \
1517
GARASIGN_PASSWORD=<garasign password> \
16-
CRATE=<mongocrypt | mongocrypt-sys> \
18+
AWS_ACCESS_KEY_ID=<s3 upload aws key> \
19+
AWS_SECRET_ACCESS_KEY=<s3 upload aws secret> \
1720
./publish.sh

publish.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ git checkout $CRATE-$VERSION
2424

2525
cd $CRATE
2626
cargo publish --token $TOKEN "$@"
27-
$(dirname $0)/.evergreen/sign-release.sh
27+
../.evergreen/sign-release.sh
28+
aws s3 cp $CRATE-$VERSION.sig s3://cdn-origin-rust-driver/rust-driver/
2829

2930
git checkout main

0 commit comments

Comments
 (0)