Skip to content

Commit

Permalink
Setup GitHub Pages deployment
Browse files Browse the repository at this point in the history
- Add gh-pages package
- Configure base URL for GitHub Pages
- Add deployment workflow
- Update router with correct basename
- Add homepage to package.json
  • Loading branch information
jackcruz53 committed Feb 24, 2025
1 parent cc21567 commit 20e8aa6
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 17 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Loading

0 comments on commit 20e8aa6

Please sign in to comment.