From 757fdfe19b4cf21e7babb3f00606f3287c334b6c Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 8 Dec 2021 00:17:22 +0100 Subject: [PATCH] Bugfixes --- .github/workflows/tdapi_file.yaml | 9 ++++--- .../github-workflows/deploy-javadoc.sh | 16 +++++++++--- scripts/core/deploy_release.sh | 5 +++- scripts/core/deploy_snapshot.sh | 7 +++++- src/main/tdapi-project-src/pom.template.xml | 25 ++++++++++--------- 5 files changed, 42 insertions(+), 20 deletions(-) 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