diff --git a/.github/workflows/tdapi_file.yaml b/.github/workflows/tdapi_file.yaml index 505c908..4c73f5d 100644 --- a/.github/workflows/tdapi_file.yaml +++ b/.github/workflows/tdapi_file.yaml @@ -111,7 +111,8 @@ jobs: run: | echo "REVISION: $REVISION" - ./scripts/continuous-integration/github-workflows/deploy-snapshot.sh + API_TYPE=legacy ./scripts/continuous-integration/github-workflows/deploy-snapshot.sh + API_TYPE=sealed ./scripts/continuous-integration/github-workflows/deploy-snapshot.sh env: MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }} @@ -121,8 +122,10 @@ jobs: run: | echo "REVISION: $REVISION" - ./scripts/continuous-integration/github-workflows/deploy-release.sh - ./scripts/continuous-integration/github-workflows/deploy-javadoc.sh + API_TYPE=legacy ./scripts/continuous-integration/github-workflows/deploy-release.sh + API_TYPE=sealed ./scripts/continuous-integration/github-workflows/deploy-release.sh + API_TYPE=legacy ./scripts/continuous-integration/github-workflows/deploy-javadoc.sh + API_TYPE=sealed ./scripts/continuous-integration/github-workflows/deploy-javadoc.sh env: MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }} diff --git a/scripts/continuous-integration/github-workflows/deploy-javadoc.sh b/scripts/continuous-integration/github-workflows/deploy-javadoc.sh index ab08dc8..dc68337 100755 --- a/scripts/continuous-integration/github-workflows/deploy-javadoc.sh +++ b/scripts/continuous-integration/github-workflows/deploy-javadoc.sh @@ -1,18 +1,28 @@ #!/bin/bash -e set -e +# Check variables correctness +if [ -z "${IMPLEMENTATION_NAME}" ]; then + echo "Missing parameter: IMPLEMENTATION_NAME" + exit 1 +fi +if [ -z "${API_TYPE}" ]; then + echo "Missing parameter: API_TYPE" + exit 1 +fi + cd ./generated/target/apidocs find . -name '*.html' -exec sed -i -r 's/<\/title>/<\/title>\n