Skip to content

Commit dc72927

Browse files
Add GitHub Pages deployment workflow
GitHub Actions workflow builds with Vite and deploys to Pages. Set base path to /shabatomic/ for correct asset loading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 80a3600 commit dc72927

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
concurrency:
13+
group: pages
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 22
28+
cache: npm
29+
30+
- run: npm ci
31+
32+
- run: npm run build
33+
env:
34+
VITE_INTERCOM_APP_ID: ${{ vars.VITE_INTERCOM_APP_ID }}
35+
36+
- uses: actions/configure-pages@v4
37+
38+
- uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: dist
41+
42+
- id: deployment
43+
uses: actions/deploy-pages@v4

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
base: '/shabatomic/',
78
})

0 commit comments

Comments
 (0)