From 3b0f9ca0aef47658f1ce852b71a64e3b88707afd Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Fri, 6 Jan 2023 01:05:43 +0600 Subject: [PATCH] Fix build Signed-off-by: hossainemruz --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e3141f..e5923ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,15 +14,21 @@ jobs: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - # install Hugo + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install node modules + run: npm install + - name: Setup Hugo uses: peaceiris/actions-hugo@v2.6.0 with: hugo-version: 'latest' extended: true - # build website - - name: Create Config - run: touch config.toml - name: Build - run: hugo --minify + run: | + cd exampleSite + hugo --minify