Skip to content

Instantly share code, notes, and snippets.

@acoshift
Created May 11, 2022 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acoshift/71f1b116b9649c22fe6553e71eec2d09 to your computer and use it in GitHub Desktop.
Save acoshift/71f1b116b9649c22fe6553e71eec2d09 to your computer and use it in GitHub Desktop.
Google Cloud Build config for Cloudflare Pages
steps:
- name: node:16
entrypoint: npm
args: [ci]
- name: node:16
entrypoint: npm
args: [run, build]
- name: node:16
entrypoint: npx
args: [wrangler, pages, publish, --project-name=$_PROJECT, ./build]
env:
- CLOUDFLARE_ACCOUNT_ID=$_CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_API_TOKEN=$_CLOUDFLARE_API_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment