Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imendizabal authored Jun 25, 2024
1 parent 68111d7 commit 6c7ab17
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -69,6 +75,7 @@ jobs:
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/" \
-s docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down

0 comments on commit 6c7ab17

Please sign in to comment.