Rewrite deploy action
This commit is contained in:
parent
268ff94cea
commit
aa44d491b4
1 changed files with 13 additions and 8 deletions
21
.github/workflows/cloudflare-workers.yml
vendored
21
.github/workflows/cloudflare-workers.yml
vendored
|
|
@ -7,13 +7,18 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
name: Worker Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Deploy
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Enable logpush
|
- uses: actions/setup-node@v3
|
||||||
run: echo "logpush = true" >> wrangler.toml
|
name: Setup Node.js
|
||||||
- name: Publish
|
with:
|
||||||
uses: cloudflare/wrangler-action@2.0.0
|
node-version: '18'
|
||||||
with:
|
cache: 'yarn'
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
- 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