updated zudoku #752
This file contains 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: Static Assets | |
on: | |
push: | |
jobs: | |
policies: | |
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@v4 | |
- uses: actions/setup-node@v4 | |
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@v2" | |
with: | |
token_format: "access_token" | |
workload_identity_provider: "projects/914576303414/locations/global/workloadIdentityPools/github-actions-wi-pool/providers/github-actions-wi-provider" | |
service_account: "[email protected]" | |
access_token_lifetime: "300s" | |
- name: Upload Media (png) | |
uses: "google-github-actions/upload-cloud-storage@v2" | |
with: | |
path: dist/docs/assets/ | |
glob: "**/*.png" | |
destination: cdn.zuplo.com/docs | |
process_gcloudignore: false | |
headers: |- | |
cache-control: max-age=31536000 | |
content-type: image/png | |
- name: Upload Media (gif) | |
uses: "google-github-actions/upload-cloud-storage@v2" | |
with: | |
path: dist/docs/assets/ | |
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@v2" | |
with: | |
path: dist/docs/assets/ | |
glob: "**/*.svg" | |
destination: cdn.zuplo.com/docs | |
process_gcloudignore: false | |
headers: |- | |
cache-control: max-age=31536000 | |
content-type: image/svg+xml |