Skip to content

Commit 57e8a0b

Browse files
authored
chore: fix release script (#1912)
1 parent 57e40b5 commit 57e8a0b

File tree

5 files changed

+14
-39
lines changed

5 files changed

+14
-39
lines changed

codebuild/ci/release-ci.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ phases:
3535
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-CI --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
3636
- tar -xvf ~/mvn_gpg.tgz -C ~
3737

38-
# Build and deploy to maven local
39-
- cd submodules/MaterialProviders
40-
- git checkout $BRANCH
41-
- cd TestVectorsAwsCryptographicMaterialProviders/
42-
# This works because `node` is installed by default on GHA runners
43-
- CORES=$(node -e 'console.log(os.cpus().length)')
44-
- make build_java CORES=$CORES
45-
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
38+
# Build and deploy TestVectors to maven local
39+
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
40+
- make build_java && make mvn_local_deploy
4641
- cd $CODEBUILD_SRC_DIR
4742

4843
build:

codebuild/ci/vectors-ci.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ phases:
2525
- aws sts get-caller-identity
2626

2727
# Build and deploy TestVectors to maven local
28-
- cd submodules/MaterialProviders
29-
- git checkout $BRANCH
30-
- cd TestVectorsAwsCryptographicMaterialProviders/
31-
# This works because `node` is installed by default on GHA runners
32-
- CORES=$(node -e 'console.log(os.cpus().length)')
33-
- make build_java CORES=$CORES
34-
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
28+
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
29+
- make build_java && make mvn_local_deploy
3530
- cd $CODEBUILD_SRC_DIR
3631
build:
3732
commands:

codebuild/ci/vectors-generator.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,9 @@ phases:
2828
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
2929
- aws sts get-caller-identity
3030

31-
# Build and deploy to maven local
32-
- cd submodules/MaterialProviders
33-
- git checkout $BRANCH
34-
- cd TestVectorsAwsCryptographicMaterialProviders/
35-
# This works because `node` is installed by default on GHA runners
36-
- CORES=$(node -e 'console.log(os.cpus().length)')
37-
- make build_java CORES=$CORES
38-
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
31+
# Build and deploy TestVectors to maven local
32+
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
33+
- make build_java && make mvn_local_deploy
3934
- cd $CODEBUILD_SRC_DIR
4035
build:
4136
commands:

codebuild/release/release-prod.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,9 @@ phases:
3232
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
3333
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
3434
- tar -xvf ~/mvn_gpg.tgz -C ~
35-
# Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
36-
- cd submodules/MaterialProviders
37-
- git checkout $BRANCH
38-
- cd TestVectorsAwsCryptographicMaterialProviders/
39-
# This works because `node` is installed by default on GHA runners
40-
- CORES=$(node -e 'console.log(os.cpus().length)')
41-
- make build_java CORES=$CORES
42-
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
35+
# Build and deploy TestVectors to maven local
36+
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
37+
- make build_java && make mvn_local_deploy
4338
- cd $CODEBUILD_SRC_DIR
4439
build:
4540
commands:

codebuild/release/release-staging.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ phases:
3535
- export CODEARTIFACT_REPO_URL=https://${DOMAIN}-${ACCOUNT}.d.codeartifact.${REGION}.amazonaws.com/maven/${REPOSITORY}
3636
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
3737
- tar -xvf ~/mvn_gpg.tgz -C ~
38-
# Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
39-
- cd submodules/MaterialProviders
40-
- git checkout $BRANCH
41-
- cd TestVectorsAwsCryptographicMaterialProviders/
42-
# This works because `node` is installed by default on GHA runners
43-
- CORES=$(node -e 'console.log(os.cpus().length)')
44-
- make build_java CORES=$CORES
45-
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
38+
# Build and deploy TestVectors to maven local
39+
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
40+
- make build_java && make mvn_local_deploy
4641
- cd $CODEBUILD_SRC_DIR
4742
build:
4843
commands:

0 commit comments

Comments
 (0)