John f8c3e96b16
Some checks failed
Build Hugo Site / build (push) Failing after 7s
update title and force rebuild
2025-04-20 21:23:25 -05:00

37 lines
864 B
YAML

name: Build Hugo Site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Ensure Output Directory is Writable
run: |
mkdir -p /mnt/hugo_output
chmod -R 777 /mnt/hugo_output # Avoid permission issues
- name: Clear Previous Build Output
run: rm -rf /mnt/hugo_output/*
- name: Build Hugo Site
run: hugo --minify --destination /mnt/hugo_output --cleanDestinationDir --buildDrafts --buildFuture --buildExpired --disableFastRender
- name: Verify Output Files
run: ls -lah /mnt/hugo_output