test: various conditions to test deployment #4
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: Deploy Cloudflare Worker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install Wrangler | |
run: npm install -g wrangler | |
- name: Publish Worker | |
env: | |
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
run: wrangler deploy --config packages/worker/wrangler.toml |