Skip to content

Deploy to GitHub Pages #31

Deploy to GitHub Pages

Deploy to GitHub Pages #31

name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
bun --version
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build:dev
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist