Deploy to Cloudflare Workers #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: Deploy to Cloudflare Workers | |
on: | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
name: Build & Deploy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: deploy --env production --minify src/index.js | |
environment: production |