diff --git a/codebuild/release/javadoc.yml b/codebuild/release/javadoc.yml new file mode 100644 index 000000000..0a751365a --- /dev/null +++ b/codebuild/release/javadoc.yml @@ -0,0 +1,26 @@ +## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +## SPDX-License-Identifier: Apache-2.0 + +version: 0.2 + +env: + variables: + BRANCH: "master" + GH_PAGES: "gh-pages" + git-credential-helper: yes + +phases: + pre_build: + commands: + - git config --global user.name "aws-crypto-tools-ci-bot" + - git config --global user.email "no-reply@noemail.local" + - git checkout $BRANCH + build: + commands: + - mvn javadoc:javadoc + - cp -r ./target/site/apidocs /tmp + - git checkout $GH_PAGES + - cp -r /tmp/apidocs/* . + - git add . + - git commit -m "docs: updating javadocs" + - git push diff --git a/codebuild/release/release.yml b/codebuild/release/release.yml index 3c53df696..768a63cf8 100644 --- a/codebuild/release/release.yml +++ b/codebuild/release/release.yml @@ -12,7 +12,7 @@ batch: buildspec: codebuild/release/release-staging.yml # Validate CodeArtifact with supported JDK and Corretto - - identifier: validate_staging_release_openjdk_8 + - identifier: validate_staging_release_openjdk8 depend-on: - release_staging buildspec: codebuild/release/validate-staging.yml @@ -56,7 +56,7 @@ batch: - identifier: version depend-on: - release_staging - - validate_staging_release_openjdk_8 + - validate_staging_release_openjdk8 - validate_staging_release_openjdk11 - validate_staging_release_corretto8 - validate_staging_release_corretto11 @@ -71,7 +71,7 @@ batch: buildspec: codebuild/release/release-prod.yml # Validate Maven Central with supported JDK and Corretto - - identifier: validate_prod_release_openjdk_8 + - identifier: validate_prod_release_openjdk8 depend-on: - publish buildspec: codebuild/release/validate-prod.yml @@ -110,3 +110,16 @@ batch: JAVA_ENV_VERSION: corretto11 JAVA_NUMERIC_VERSION: 11 image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 + + - identifier: update_javadoc + depend-on: + - validate_prod_release_openjdk8 + - validate_prod_release_openjdk11 + - validate_prod_release_corretto8 + - validate_prod_release_corretto11 + buildspec: codebuild/release/javadoc.yml + env: + variables: + JAVA_ENV_VERSION: coretto11 + JAVA_NUMERIC_VERSION: 11 + image: aws/codebuild/amazonlinux2-x86_64-standard:3.0