update cloudflare pages name -- migration (add callback whitelist) WIP #17
Workflow file for this run
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: Build and Deploy Netlify CMS Auth | |
on: | |
push: | |
branches: | |
- deploy/netlify-cms-auth | |
- cloudflare-migration2 | |
jobs: | |
build_and_deploy: | |
name: Build and Deploy | |
environment: "netlify-cms-auth" | |
permissions: | |
contents: read | |
deployments: write | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.yarn/cache | |
.yarn/install-state.gz | |
.eslintcache | |
**/tsconfig.tsbuildinfo | |
**/.types/** | |
**/.types-*/** | |
key: build-cache-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
build-cache- | |
- name: Install dependencies | |
run: yarn | |
- name: Publish | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }} | |
workingDirectory: workspaces/netlify-cms-auth | |
command: publish |