feat: add github pages workflow

This commit is contained in:
DuroCodes
2024-05-06 21:07:08 -04:00
parent b29faf80ea
commit 54943e37aa

29
.github/workflows/github-pages.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Build
run: bun build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com