fix: wrangler depdencies + env name update
All checks were successful
Build & Deploy / build (push) Successful in 14s
Build & Deploy / deploy-to-remote (push) Successful in 17s
Build & Deploy / deploy-to-cloudflare (push) Successful in 1m14s

This commit is contained in:
CDN 2023-11-15 11:23:47 +08:00
parent 2fe0b52fcf
commit b5a10e46d9
Signed by: CDN18
GPG key ID: CF7D420E4A155266

View file

@ -61,11 +61,19 @@ jobs:
with:
name: public
path: public/
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install Dependencies
run: |
cd wrangler
npm install
- name: Publish to Cloudflare
uses: cloudflare/wrangler-action@2.0.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: wrangler
command: deploy
env:
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}