Skip to content

Commit 3f2819f

Browse files
committed
chore: CI for GH pages
1 parent 2a07089 commit 3f2819f

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22
on: [ push, pull_request ]
33
jobs:
4-
Build:
4+
build:
55
runs-on: ubuntu-latest
66

77
steps:
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+
on:
3+
push:
4+
branches: [ $default-branch ]
5+
workflow_dispatch:
6+
concurrency:
7+
group: "pages"
8+
cancel-in-progress: false
9+
jobs:
10+
deploy:
11+
environment:
12+
name: github-pages
13+
url: ${{ steps.deployment.outputs.page_url }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: 'npm'
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Build
26+
run: xvfb-run npm run all
27+
- name: Upload artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: dist
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)