Preview site build test 01
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- preview
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@@ -30,13 +31,22 @@ jobs:
|
||||
- name: Build site
|
||||
run: hugo --minify --gc
|
||||
|
||||
- name: Deploy to Caddy site directory
|
||||
- name: Build and Deploy (Live - master)
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
echo "=== Checking /deploy-live mount ==="
|
||||
ls -la /deploy-live || echo "/deploy-live does not exist or is not mounted"
|
||||
echo "=== Contents of public/ ==="
|
||||
ls -la public/ || echo "public/ not found"
|
||||
echo "Deploying to live site ..."
|
||||
echo "Building site for live (help.ats4all.com)..."
|
||||
hugo --minify --gc -b "https://help.ats4all.com"
|
||||
echo "Deploying to /deploy-live ..."
|
||||
rm -rf /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."
|
||||
|
||||
Reference in New Issue
Block a user