chore: create build.yml workflow

This commit is contained in:
Radek Kozieł
2026-04-05 23:12:48 +02:00
committed by GitHub
parent eb8c44dc40
commit 56ae0901f1
+31
View File
@@ -0,0 +1,31 @@
name: Build
on: push
env:
HUGO_VERSION: 0.152.2
jobs:
build:
runs-on: ubuntu-22.04
steps:
# CHEKCOUT REPOSITORY
- name: Git checkout
uses: actions/checkout@v3
# SETUP HUGO
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '${{ env.HUGO_VERSION }}'
extended: true
# DEPENDENCIES
- name: Install npm dependencies
run: npm ci
# BUILD
- name: Build Site
env:
TZ: 'Europe/Warsaw'
run: hugo --minify