Preview site build test 01

This commit is contained in:
2026-08-14 16:18:13 -04:00
parent f4f0827c1d
commit 0eb78a7369
+17 -7
View File
@@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- master - master
- preview
jobs: jobs:
build-and-deploy: build-and-deploy:
@@ -30,13 +31,22 @@ jobs:
- name: Build site - name: Build site
run: hugo --minify --gc run: hugo --minify --gc
- name: Deploy to Caddy site directory - name: Build and Deploy (Live - master)
if: github.ref == 'refs/heads/master'
run: | run: |
echo "=== Checking /deploy-live mount ===" echo "Building site for live (help.ats4all.com)..."
ls -la /deploy-live || echo "/deploy-live does not exist or is not mounted" hugo --minify --gc -b "https://help.ats4all.com"
echo "=== Contents of public/ ===" echo "Deploying to /deploy-live ..."
ls -la public/ || echo "public/ not found"
echo "Deploying to live site ..."
rm -rf /deploy-live/* rm -rf /deploy-live/*
cp -a public/. /deploy-live/ cp -a public/. /deploy-live/
echo "Deploy complete." echo "Live deploy complete."
- name: Build and Deploy (Preview - preview)
if: github.ref == 'refs/heads/preview'
run: |
echo "Building site for preview (testweb.ats4all.com)..."
hugo --minify --gc -D -b "https://testweb.ats4all.com"
echo "Deploying to /deploy-preview ..."
rm -rf /deploy-preview/*
cp -a public/. /deploy-preview/
echo "Preview deploy complete."