Skip to content

Commit

Permalink
ci: build and deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed Nov 27, 2023
1 parent ba2af47 commit f85b5fa
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/bun_build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -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-site

- 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

0 comments on commit f85b5fa

Please sign in to comment.