Skip to content

Commit 9435412

Browse files
committed
👷 setup github pages deploy
1 parent 9302ad3 commit 9435412

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
deploy:
7+
environment:
8+
name: github-pages
9+
url: ${{ steps.pages.outputs.page_url }}
10+
permissions:
11+
pages: write
12+
id-token: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: "10.20.0"
19+
run_install: false
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: ">=22.14.0"
23+
cache: pnpm
24+
- run: pnpm install --frozen-lockfile
25+
- run: pnpm run build
26+
- uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: dist
29+
- uses: actions/deploy-pages@v4
30+
id: pages

0 commit comments

Comments
 (0)