Compare commits
3
Commits
f4f0827c1d
...
preview
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fe404e775 | ||
|
|
dee15a11df | ||
|
|
0eb78a7369 |
@@ -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."
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ title: "Affordable Technology Services"
|
|||||||
description: "Affordable Technology Services provides friendly, affordable computer help, software support, and home technology solutions."
|
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.
|
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.
|
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