update default_config.json #1312
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: 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 |