Skip to content

Commit 84415a1

Browse files
committed
feat: change deploy pipeline to github pages
1 parent 990d812 commit 84415a1

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@v2
16+
with:
17+
persist-credentials: true
1418
- name: Set up Node.js
1519
uses: actions/setup-node@v2
1620
with:
@@ -22,9 +26,6 @@ jobs:
2226
- name: Build
2327
run: yarn build
2428
- name: Deploy
25-
uses: cloudflare/wrangler-action@v3
26-
with:
27-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28-
accountId: ${{ secrets.CLOUDFLARE_PAGE_ACCOUNT_ID }}
29-
command: |
30-
pages deploy build/ --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
29+
run: yarn deploy
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)