Skip to content

Commit 3df7a0c

Browse files
feat: deploy github pages
1 parent 3e39989 commit 3df7a0c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build-and-deploy:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
26+
- run: npm ci
27+
- run: npm run build
28+
29+
- uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: dist/examples
32+
33+
- id: deployment
34+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)