Skip to content

Upgrade Hugo to version 0.120 #435

Upgrade Hugo to version 0.120

Upgrade Hugo to version 0.120 #435

Workflow file for this run

name: Lint, Build and Deploy
on:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Prettier
run: sudo npm install --global prettier
- name: Lint
run: prettier --check content
build:
name: Build
needs: lint
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.120.3
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Hugo
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: Build
run: hugo --minify
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public
deploy:
name: Deploy
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Configure Deployment
uses: actions/configure-pages@v3
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2