Change Worker route #4
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: Cloudflare CI/CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build & Deploy Worker | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CFAT_WORKER_DEPLOYMENT }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
command: deploy worker.js --compatibility-date "2022-07-12" --name dns01cf-github --route "github-cicd.dns01cf.com/*" |