Skip to content

feat(new site): a full back end update of the current website using the (modified) clean hugo theme #2405

feat(new site): a full back end update of the current website using the (modified) clean hugo theme

feat(new site): a full back end update of the current website using the (modified) clean hugo theme #2405

Workflow file for this run

name: Build Hugo site and run htmlproofer
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "20"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Setup Hugo
uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3
with:
hugo-version: "0.139.4"
extended: true
- name: Build with Hugo
run: hugo --gc --minify
env:
HUGO_ENV: production
- name: Restore lychee cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .lycheecache
key: cache-lychee-${{ hashFiles('lychee.toml', '.lycheeignore') }}-${{ github.sha }}
restore-keys: |
cache-lychee-${{ hashFiles('lychee.toml', '.lycheeignore') }}-
cache-lychee-
- name: Check links with lychee
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
fail: true
args: --root-dir public public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check HTML using htmlproofer
uses: chabad360/htmlproofer@c2750eb7eb937599ac859517e7dd23a29f1b3ed7 # v2
with:
directory: "public"
arguments: |
--ignore-urls "/^https?:\/\/(www\.)?pyopensci\.org\//"
--checks "Images,Scripts"