From 3612df74640076c4cd25df9409aefc91bb176f30 Mon Sep 17 00:00:00 2001 From: ashpect Date: Mon, 2 Sep 2024 04:27:53 +0530 Subject: [PATCH] Fix the deps of themes, should work now --- .github/workflows/hugo.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index c6372cd..98864ed 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -10,6 +10,7 @@ on: workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +# trigger actions permissions: contents: read pages: write @@ -49,6 +50,10 @@ jobs: uses: actions/configure-pages@v5 - name: Copy config.sample.toml to config.toml run: cp ./docs/config.sample.toml ./docs/config.toml + - name: Install theme dependencies + run: npm install --prefix ./docs/themes/hugo-geekdoc + - name: Build theme + run: npm run build --prefix ./docs/themes/hugo-geekdoc - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo @@ -60,11 +65,14 @@ jobs: hugo \ --gc \ --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" --source ./docs + --baseURL "${{ steps.pages.outputs.base_url }}/" \ + --source ./docs + # - name : check if themes folder is empty + # run: ls -al ./docs/themes - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: /public + path: ./docs/public # Deployment job deploy: