Update DeployToCloudflare.yml #5
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 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
repository_dispatch: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Install cheerio | ||
run: npm install cheerio | ||
- name: Install crypto-js | ||
run: npm install crypto-js | ||
- name: Debug | ||
run: echo "Using Cloudflare Account ID: ${{ secrets.CF_TEST }}" | ||
- name: Build & Deploy Worker | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} |