diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01987463..4113bae5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,16 +42,35 @@ jobs: 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 + LATEST=$(git tag -l | grep 2022.9 | sort | tail -n 1) && \ + git checkout ${LATEST} && \ + npx typedoc --name "Corteza JS 2022.9" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2022.9 src/api-clients/index.ts + 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 + - name: Build corteza-server api docs run: | cd corteza/server - mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2024.9,2023.9} + mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2024.9,2023.9,2023.3,2022.9,2022.3} LATEST=$(git tag -l | grep 2024.9 | sort | tail -n 1) && \ git checkout ${LATEST} && \ cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2024.9 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 + LATEST=$(git tag -l | grep 2022.9 | sort | tail -n 1) && \ + git checkout ${LATEST} && \ + cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2022.9 + 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 - 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 }} diff --git a/antora-playbook.yml b/antora-playbook.yml index 52977d74..119d54c3 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -7,7 +7,7 @@ site: content: sources: - url: https://github.com/cortezaproject/corteza-docs - branches: [ 2023.9.x, 2024.9.x ] + branches: [ 2019.12.x, 2020.6.x, 2020.9.x, 2020.12.x, 2021.3.x, 2021.9.x, 2022.3.x, 2022.9.x, 2023.3.x, 2023.9.x, 2024.9.x ] start_path: src ui: