From d8d55a354f6d501b043dbc34bc159c8e62310eba Mon Sep 17 00:00:00 2001 From: Yaodong Zhao Date: Sun, 11 Aug 2024 14:39:35 -0700 Subject: [PATCH] Build assets --- .github/workflows/jekyll.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jekyll.yaml b/.github/workflows/jekyll.yaml index 190d4f2..7012725 100644 --- a/.github/workflows/jekyll.yaml +++ b/.github/workflows/jekyll.yaml @@ -37,12 +37,24 @@ jobs: # Increment this number if you need to re-download cached gems cache-version: 0 + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: '1.0.35' + + - name: Install Packages + run: bun install + + - name: Build Assets + env: + NODE_ENV: production + run: bun run build:css + - name: Setup Pages id: pages uses: actions/configure-pages@v5 - name: Build with Jekyll - # Outputs to the './_site' directory by default run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" env: JEKYLL_ENV: production