Skip to content

ci: build and deploy to github pages #1

ci: build and deploy to github pages

ci: build and deploy to github pages #1

name: Bun Build and Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Run Build
run: bun run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: ./build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2