Skip to content

Commit

Permalink
Added 2023.9 api docs to build
Browse files Browse the repository at this point in the history
  • Loading branch information
petergrlica committed Nov 28, 2023
1 parent b490edf commit 3e9b7d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
cd corteza/lib/js
yarn add [email protected]
yarn add [email protected]
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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 3e9b7d5

Please sign in to comment.