Skip to content

Commit 18fda6a

Browse files
committed
update
1 parent 627764d commit 18fda6a

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Build
27+
run: npm run build
28+
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v3
31+
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v2
34+
with:
35+
path: './dist'
36+
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v2
40+
41+
permissions:
42+
contents: read
43+
pages: write
44+
id-token: write
45+
46+
concurrency:
47+
group: "pages"
48+
cancel-in-progress: false

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)