Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fe404e775 | ||
|
|
dee15a11df | ||
|
|
0eb78a7369 |
@@ -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."
|
||||
|
||||
@@ -3,6 +3,8 @@ title: "Affordable Technology Services"
|
||||
description: "Affordable Technology Services provides friendly, affordable computer help, software support, and home technology solutions."
|
||||
---
|
||||
|
||||
Site Build Preview Test
|
||||
|
||||
Technology should make life easier, not more frustrating.
|
||||
|
||||
Whether your computer is running slowly, your Wi-Fi isn't cooperating, or you need help setting up a new device, Affordable Technology Services provides practical, patient support.
|
||||
|
||||
Reference in New Issue
Block a user