Fix guides page sidebar sticky position and strip underscore properti… #1737
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: Main | |
| on: | |
| push: | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| lfs: "true" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run format:ci | |
| - run: npm run guides:check | |
| - run: npm run lint:admonitions | |
| static-assets: | |
| name: Upload Static Assets | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_NPM_TOKEN: ${{ secrets.GH_CUSTOM_TOKEN }} | |
| permissions: | |
| contents: "read" | |
| id-token: "write" | |
| deployments: "write" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| lfs: "true" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run build | |
| - id: "auth" | |
| name: "Authenticate to Google Cloud" | |
| uses: "google-github-actions/auth@v3" | |
| with: | |
| token_format: "access_token" | |
| workload_identity_provider: "projects/914576303414/locations/global/workloadIdentityPools/github-actions-wi-pool/providers/github-actions-wi-provider" | |
| service_account: "github-actions-docs@zuplo-production.iam.gserviceaccount.com" | |
| access_token_lifetime: "300s" | |
| - name: Upload Media (png) | |
| uses: "google-github-actions/upload-cloud-storage@v3" | |
| with: | |
| path: dist/docs/vc-ap-e3e2a9/ | |
| glob: "**/*.png" | |
| destination: cdn.zuplo.com/docs | |
| process_gcloudignore: false | |
| headers: |- | |
| cache-control: max-age=31536000 | |
| content-type: image/png | |
| - name: Upload Media (jpg) | |
| uses: "google-github-actions/upload-cloud-storage@v3" | |
| with: | |
| path: dist/docs/vc-ap-e3e2a9/ | |
| glob: "**/*.jpg" | |
| destination: cdn.zuplo.com/docs | |
| process_gcloudignore: false | |
| headers: |- | |
| cache-control: max-age=31536000 | |
| content-type: image/jpeg | |
| - name: Upload Media (gif) | |
| uses: "google-github-actions/upload-cloud-storage@v3" | |
| with: | |
| path: dist/docs/vc-ap-e3e2a9/ | |
| glob: "**/*.gif" | |
| destination: cdn.zuplo.com/docs | |
| process_gcloudignore: false | |
| headers: |- | |
| cache-control: max-age=31536000 | |
| content-type: image/gif | |
| - name: Upload Media (svg) | |
| uses: "google-github-actions/upload-cloud-storage@v3" | |
| with: | |
| path: dist/docs/vc-ap-e3e2a9/ | |
| glob: "**/*.svg" | |
| destination: cdn.zuplo.com/docs | |
| process_gcloudignore: false | |
| headers: |- | |
| cache-control: max-age=31536000 | |
| content-type: image/svg+xml | |
| - name: Upload Media (webp) | |
| uses: "google-github-actions/upload-cloud-storage@v3" | |
| with: | |
| path: dist/docs/vc-ap-e3e2a9/ | |
| glob: "**/*.webp" | |
| destination: cdn.zuplo.com/docs | |
| process_gcloudignore: false | |
| headers: |- | |
| cache-control: max-age=31536000 | |
| content-type: image/webp | |
| check-links: | |
| name: Check Links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| lfs: "true" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Restore lychee cache | |
| id: cache-lychee | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: .lycheecache | |
| key: lychee-cache-${{ hashFiles('.lycheecache') }} | |
| restore-keys: | | |
| lychee-cache- | |
| - name: Link Checker | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: --offline --fallback-extensions html --root-dir $PWD/dist --include-fragments ./dist | |
| - name: Save lychee cache | |
| if: always() | |
| uses: actions/cache/save@v5 | |
| with: | |
| path: .lycheecache | |
| key: lychee-cache-${{ hashFiles('.lycheecache') }} |