Skip to content

try todo

try todo #50

Workflow file for this run

name: Build
on:
pull_request:
push:
workflow_call:
inputs:
hugo_env:
required: false
type: string
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.1"
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: npm
node-version: "20.6.1"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
extended: true
hugo-version: "0.118.2"
- name: Install Dependencies
run: npm i # TODO fix vulnerabilities
- name: Build
env:
HUGO_ENV: ${{ inputs.hugo_env }}
run: hugo --minify
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: html
path: public
if-no-files-found: error