diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index f478ee5..b8c3429 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -32,32 +32,38 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.123.0 + HUGO_VERSION: 0.128.0 steps: - - name: Install Node.js dependencies - run: npm install postcss-cli - - name: Install autoprefixer - run: npm install autoprefixer - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass run: sudo snap install dart-sass + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' # Choose the Node.js version you need + + - name: Install Node.js dependencies + run: | + npm install postcss-cli autoprefixer + - name: Checkout uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '16' # Choose the Node.js version you need + - name: Setup Pages id: pages uses: actions/configure-pages@v4 + - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules @@ -69,6 +75,7 @@ jobs: --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" \ -s docs + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: