This commit is contained in:
parent
ad7a3e52dc
commit
4af86ebe4f
30
.gitea/workflows/build.yml
Normal file
30
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Build Hugo Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Hugo
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y hugo
|
||||||
|
|
||||||
|
- name: Build Hugo Site
|
||||||
|
run: |
|
||||||
|
# Build directly to the mounted public directory
|
||||||
|
hugo --minify -d /data/hugo/public
|
||||||
|
|
||||||
|
# Verify the build was successful
|
||||||
|
if [ ! -d /data/hugo/public ]; then
|
||||||
|
echo "Hugo build failed - public directory not created"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
@ -4,4 +4,4 @@ description: "This is a website"
|
|||||||
date: 2025-03-08
|
date: 2025-03-08
|
||||||
---
|
---
|
||||||
|
|
||||||
Hello World
|
Hello World!
|
||||||
Loading…
x
Reference in New Issue
Block a user