Skip to content

Commit 1876161

Browse files
committed
ci: add deployment workflow to GitHub Pages
1 parent 6b3a63c commit 1876161

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yaml

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

0 commit comments

Comments
 (0)