From 3e9b7d5aeb66168a5df53acdf1b6900c26535bc3 Mon Sep 17 00:00:00 2001 From: Peter Grlica Date: Tue, 28 Nov 2023 13:36:58 +0100 Subject: [PATCH] Added 2023.9 api docs to build --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e62dcf8d..6f554ef1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,9 @@ jobs: cd corteza/lib/js yarn add typescript@4.7.4 yarn add typedoc@0.23.17 + LATEST=$(git tag -l | grep 2023.9 | sort | tail -n 1) && \ + git checkout ${LATEST} && \ + npx typedoc --name "Corteza JS 2023.9" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2023.9 src/api-clients/index.ts LATEST=$(git tag -l | grep 2023.3 | sort | tail -n 1) && \ git checkout ${LATEST} && \ npx typedoc --name "Corteza JS 2023.3" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2023.3 src/api-clients/index.ts @@ -40,13 +43,13 @@ jobs: LATEST=$(git tag -l | grep 2022.3 | sort | tail -n 1) && \ git checkout ${LATEST} && \ npx typedoc --name "Corteza JS 2022.3" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2022.3 src/api-clients/index.ts - LATEST=$(git tag -l | grep 2021.9 | sort | tail -n 1) && \ - git checkout ${LATEST} && \ - npx typedoc --name "Corteza JS 2021.9" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2021.9 src/api-clients/index.ts - name: Build corteza-server api docs run: | cd corteza/server - mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2023.3,2022.9,2022.3,2021.9} + mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2023.9,2023.3,2022.9,2022.3} + LATEST=$(git tag -l | grep 2023.9 | sort | tail -n 1) && \ + git checkout ${LATEST} && \ + cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2023.9 LATEST=$(git tag -l | grep 2023.3 | sort | tail -n 1) && \ git checkout ${LATEST} && \ cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2023.3 @@ -56,9 +59,6 @@ jobs: LATEST=$(git tag -l | grep 2022.3 | sort | tail -n 1) && \ git checkout ${LATEST} && \ cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2022.3 - LATEST=$(git tag -l | grep 2021.9 | sort | tail -n 1) && \ - git checkout ${LATEST} && \ - cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2021.9 - run: docker build --build-arg ALGOLIA_APP_ID="$ALGOLIA_APP_ID" --build-arg ALGOLIA_API_KEY="$ALGOLIA_API_KEY" --build-arg ALGOLIA_INDEX_NAME="$ALGOLIA_INDEX_NAME" -t cortezaproject/corteza-docs:${{ env.BUILD_VERSION }} . - run: docker push cortezaproject/corteza-docs:${{ env.BUILD_VERSION }}