Skip to content

Commit 9c2fcf1

Browse files
committed
ci: add deploy
1 parent ec21525 commit 9c2fcf1

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on: [push]
2+
3+
jobs:
4+
deploy:
5+
runs-on: ubuntu-latest
6+
name: Deploy
7+
permissions:
8+
contents: read
9+
deployments: write
10+
steps:
11+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
12+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
13+
14+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
cache: "pnpm"
18+
19+
- name: Install dependencies
20+
run: pnpm install --frozen-lockfile
21+
22+
- name: Build
23+
run: pnpm run docs:build
24+
25+
- name: Deploy
26+
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
27+
with:
28+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+
command: pages deploy docs/.vitepress/dist --project-name=chibivitest

0 commit comments

Comments
 (0)