fix(build): bump azion-theme to 1.18.3 to restore light mode prose st… #2190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Documentation production pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| required: true | |
| type: choice | |
| default: main | |
| options: | |
| - main | |
| jobs: | |
| deploy: | |
| name: Production publising | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: CHECKOUT project | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: SETTING pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: SETTING Node and Github Packages | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.23.2 | |
| cache: 'pnpm' | |
| - name: INSTALLING DEPENDENCIES | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: BUILD | |
| run: | | |
| export NODE_OPTIONS="--max-old-space-size=8120" | |
| export PUBLIC_GITHUB_TOKEN="${{ secrets.GH_PACKAGES_SECRET }}" | |
| pnpm run build:prod | |
| - name: UPDATE Algolia data | |
| run: | | |
| pnpm exec tsx cicd/algolia-reindex.ts app=${{ secrets.ALGOLIA_CONF_APP }} api=${{ secrets.ALGOLIA_CONF_API }} | |
| - name: 'AUTH Google Cloud' | |
| uses: 'google-github-actions/auth@v2' | |
| with: | |
| credentials_json: ${{ secrets.GCP_EXP_ENG }} | |
| - uses: 'google-github-actions/setup-gcloud@v2' | |
| with: | |
| version: '>= 363.0.0' | |
| - name: PUBLISHING | |
| run: | | |
| gsutil -m rsync -r -d dist gs://azdocs | |
| - name: UPDATING Google Cloud Storage files Cache-Control header | |
| run: | | |
| gcloud storage objects update -r gs://azdocs --cache-control="public, max-age=120" | |
| - name: PURGE Edge Cache | |
| run: | | |
| node ./cicd/cdn-purge.js | |
| env: | |
| AZION_TOKEN: ${{ secrets.AZION_TOKEN }} |