Skip to content

chore(deps): pin [email protected]

chore(deps): pin [email protected] #2

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Siemens AG
#
# SPDX-License-Identifier: Apache-2.0
#
# Author: Michael Adler <[email protected]>
---
name: Pages
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
pages:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
# note: hugo >= 0.123.0 and <= 0.123.6 is broken for us
hugo-version: "0.122.0"
extended: true
- name: Setup Node
uses: actions/setup-node@v4
with:
# see https://github.com/nodejs/Release/blob/main/CODENAMES.md
node-version: lts/Hydrogen
cache: "npm"
# The action defaults to search for the dependency file (package-lock.json,
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
# hash as a part of the cache key.
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
cache-dependency-path: "**/package-lock.json"
- uses: extractions/setup-just@v2
- uses: r-lib/actions/setup-pandoc@v2
- run: sudo apt-get update -q && sudo apt-get install -y --no-install-recommends make imagemagick librsvg2-bin
# check for broken links
- run: sudo npm install -g [email protected]
- run: just check-md-links
- run: cd hugo && npm ci
- run: just pages
env:
HUGO_BASEURL: ${{ vars.HUGO_BASEURL }}
- run: ls -al public/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public