Skip to content

Commit e87c467

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

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: [ $default-branch ]
5+
concurrency:
6+
group: "pages"
7+
cancel-in-progress: false
8+
jobs:
9+
deploy:
10+
environment:
11+
name: github-pages
12+
url: ${{ steps.deployment.outputs.page_url }}
13+
runs-on: ubuntu-latest
14+
steps:
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: Setup Pages
28+
uses: actions/configure-pages@v5
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
# Upload entire repository
33+
path: '.'
34+
- name: Deploy to GitHub Pages
35+
id: deployment
36+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)