From fb9b06808878bd55e3b251d810c25c5ea2a94553 Mon Sep 17 00:00:00 2001 From: Akshay S Dinesh Date: Tue, 6 Aug 2024 20:51:45 +0530 Subject: [PATCH] ci: hugo should run in subfolder and only once --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60c08beda..b845e8a28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,8 +52,6 @@ jobs: cache-dependency-path: site/package-lock.json - name: install npm modules run: npm --prefix ./site install - - name: generate site - run: hugo -s site - name: Build with Hugo env: HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache @@ -61,6 +59,7 @@ jobs: TZ: Asia/Kolkata run: | hugo \ + -s site \ --gc \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/"