chore: create build.yml workflow
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user