Skip to content

Commit 7a43c49

Browse files
committed
m
1 parent 38b0f3f commit 7a43c49

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
To publish a new version of the aws-db-esdk, version 1.2.3
1+
To publish a new version of the aws-db-esdk for version N.N.N
22

33
1. Acquire the appropriate permissions
44
1. Ensure git checkout of main is fresh and clean
5-
1. ./start_release.sh 1.2.3
5+
1. ./start_release.sh N.N.N
66
1. cd ../../../releases/rust/db_esdk
7-
1. Create a PR with changes
7+
1. Create a PR with all changed or added files
88
1. cargo publish
99
1. cd ../../../DynamoDbEncryption/runtimes/rust/ # i.e. return here
10-
1. ./test_published.sh
10+
1. ./test_published.sh N.N.N

DynamoDbEncryption/runtimes/rust/start_release.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/bin/bash -eu
22

3+
if [ "$#" -ne 1 ]; then
4+
echo 1>&2 "USAGE: start_release.sh N.N.N"
5+
exit 1
6+
fi
7+
38
cd $( dirname ${BASH_SOURCE[0]} )
49

510
REGEX_VERSION='^\d+\.\d+\.\d+$'
6-
7-
echo "$1" | egrep -q $REGEX_VERSION
8-
if [ $? -ne 0 ]; then
11+
MATCHES=$(echo "$1" | egrep $REGEX_VERSION | wc -l)
12+
if [ $MATCHES -eq 0 ]; then
913
echo 1>&2 "Version \"$1\" must be N.N.N"
1014
exit 1
1115
fi

DynamoDbEncryption/runtimes/rust/test_examples/Cargo.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ name = "aws-db-esdk-examples"
33
version = "0.1.0"
44
edition = "2021"
55
rust-version = "1.80.0"
6-
keywords = ["cryptography", "security", "dynamodb", "encryption", "client-side"]
7-
license = "ISC AND (Apache-2.0 OR ISC)"
8-
description = "aws-db-esdk is a library for implementing client side encryption with DynamoDB."
9-
homepage = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk"
10-
repository = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk"
11-
authors = ["AWS-CryptoTools"]
12-
documentation = "https://docs.rs/crate/aws-db-esdk"
13-
readme = "README.md"
146

157
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
168

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
#!/bin/bash -eu
22

3+
if [ "$#" -ne 1 ]; then
4+
echo 1>&2 "USAGE: test_published.sh N.N.N"
5+
exit 1
6+
fi
7+
38
cd $( dirname ${BASH_SOURCE[0]} )
49

10+
REGEX_VERSION='^\d+\.\d+\.\d+$'
11+
12+
echo "$1" | egrep -q $REGEX_VERSION
13+
if [ $? -ne 0 ]; then
14+
echo 1>&2 "Version \"$1\" must be N.N.N"
15+
exit 1
16+
fi
17+
18+
VERSION=$1
19+
520
rm -rf test_examples/src
621
cp -r examples test_examples/src/
722
cd test_examples
823
cargo add aws-db-esdk
24+
MATCH=$(fgrep "aws-db-esdk = \"$VERSION\"" Cargo.toml | wc -l)
25+
if [ $MATCH -eq "0" ]; then
26+
echo Version $VERSION of aws-db-esdk not the most recent
27+
egrep '^aws-db-esdk' Cargo.toml
28+
exit 1
29+
fi
930
cargo run

0 commit comments

Comments
 (0)