Skip to content

Commit f480a8c

Browse files
committed
add github actions
1 parent 9bdcbf4 commit f480a8c

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build-and-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: npm
22+
23+
- run: npm ci
24+
- run: npm run build
25+
26+
- uses: actions/configure-pages@v4
27+
- uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: dist
30+
31+
- uses: actions/deploy-pages@v4
32+

vite.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from 'vite'
2+
3+
export default defineConfig({
4+
base: '/starter-plot-repo/',
5+
})
6+

0 commit comments

Comments
 (0)