Rewrite deploy action
This commit is contained in:
parent
268ff94cea
commit
aa44d491b4
1 changed files with 13 additions and 8 deletions
17
.github/workflows/cloudflare-workers.yml
vendored
17
.github/workflows/cloudflare-workers.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue