msfjarvis.dev/.github/workflows/build-test.yml

30 lines
652 B
YAML

name: Build website
on:
push:
branches:
- renovate/**
jobs:
deploy-main:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
- name: Setup Latest Version of Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # tag=v2
with:
hugo-version: '0.108.0'
extended: true
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version-file: 'go.mod'
- name: Build
shell: bash
run: |
hugo --minify --gc