1 parent 990d812 commit 84415a1Copy full SHA for 84415a1
1 file changed
.github/workflows/deploy.yaml
@@ -8,9 +8,13 @@ on:
8
jobs:
9
deploy:
10
runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
steps:
14
- name: Checkout code
15
uses: actions/checkout@v2
16
+ with:
17
+ persist-credentials: true
18
- name: Set up Node.js
19
uses: actions/setup-node@v2
20
with:
@@ -22,9 +26,6 @@ jobs:
22
26
- name: Build
23
27
run: yarn build
24
28
- name: Deploy
25
- uses: cloudflare/wrangler-action@v3
- with:
- apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- accountId: ${{ secrets.CLOUDFLARE_PAGE_ACCOUNT_ID }}
29
- command: |
30
- pages deploy build/ --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
+ run: yarn deploy
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments