diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 65431aa..539a304 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -38,8 +38,10 @@ jobs: 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 + - name: Install Dart Sass run: sudo snap install dart-sass + - name: Checkout uses: actions/checkout@v4 with: @@ -48,8 +50,13 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v5 + - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + + - name: Install PostCSS + run: npm install -g postcss postcss-cli autoprefixer + - name: Build with Hugo env: HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache @@ -60,6 +67,7 @@ jobs: --gc \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: