Skip to content

deploy

deploy #30

Workflow file for this run

name: Build
on:
pull_request:
push:
workflow_call:
inputs:
environment:
required: false
type: string
jobs:
Build:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
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.environment }}
run: hugo --minify
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: html
path: public
if-no-files-found: error