updated action #2
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 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Latest Wrangler | |
run: npm install -g wrangler | |
- name: Publish to Cloudflare | |
run: wrangler deploy | |
env: | |
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |