Skip to content

Commit 469a50c

Browse files
committed
deploy action
1 parent 1cdddb1 commit 469a50c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: deploy
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build-and-deploy:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
pages: write
18+
id-token: write
19+
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
24+
steps:
25+
- uses: actions/checkout@v6
26+
27+
- uses: actions/setup-node@v6
28+
with:
29+
node-version: 24.x
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build
35+
run: npm run build
36+
37+
- uses: actions/upload-pages-artifact@v4
38+
with:
39+
path: dist
40+
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)