diff --git a/.github/workflows/bun_build_and_deploy.yml b/.github/workflows/bun_build_and_deploy.yml new file mode 100644 index 0000000..3fcef7a --- /dev/null +++ b/.github/workflows/bun_build_and_deploy.yml @@ -0,0 +1,42 @@ +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