Rewrite deploy action

This commit is contained in:
Erisa A 2023-03-05 17:59:31 +00:00
parent 268ff94cea
commit aa44d491b4
No known key found for this signature in database

View file

@ -7,13 +7,18 @@ on:
jobs:
deploy:
name: Worker Deploy
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Enable logpush
run: echo "logpush = true" >> wrangler.toml
- name: Publish
uses: cloudflare/wrangler-action@2.0.0
- uses: actions/setup-node@v3
name: Setup Node.js
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
node-version: '18'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Deploy Worker to Cloudflare
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
run: yarn deploy