From f93adf9924ef0b313d9d9c0e751db9c121b95b4a Mon Sep 17 00:00:00 2001 From: cstef Date: Sat, 25 Jan 2025 14:09:12 +0100 Subject: [PATCH] fix(ci): add tailwind css build --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index daa0305..de44b91 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Homebrew id: set-up-homebrew @@ -20,6 +20,19 @@ jobs: with: tools: cestef/tap/zola svgo + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Cache Zola build uses: actions/cache@v3 with: @@ -30,9 +43,15 @@ jobs: restore-keys: | ${{ runner.os }}-zola- - - name: Build site + - name: Build Tailwind CSS + run: pnpm run css:build + + - name: Build Zola site run: zola build + - name: Display structure of built files + run: ls -R public + - name: Upload artifact uses: actions/upload-artifact@v4 with: