Skip to content

update default_config.json #1348

update default_config.json

update default_config.json #1348

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'dist/**'
- '.github/workflows/deploy.yml'
- "wrangler.toml"
- "worker.template.js"
- "Makefile"
jobs:
deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
concurrency: build-web
steps:
- uses: actions/checkout@v3
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.IMMERSIVE_CLOUDFLARE_API_TOKEN }}
accountId: ${{secrets.IMMERSIVE_CLOUDFLARE_ACCOUNT_ID}}
projectName: config
directory: dist
- name: build worker
run: make build
- name: Deploy worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.IMMERSIVE_CLOUDFLARE_API_TOKEN }}
accountId: ${{secrets.IMMERSIVE_CLOUDFLARE_ACCOUNT_ID}}
workingDirectory: ./
command: deploy ./.cache/worker.js --env prod