Change to live and preview - live first
Build and Deploy Hugo Site / build-and-deploy (push) Successful in 9m57s
Build and Deploy Hugo Site / build-and-deploy (push) Successful in 9m57s
This commit is contained in:
@@ -34,12 +34,7 @@ jobs:
|
||||
run: |
|
||||
# Runner is on the same host as Caddy.
|
||||
# /deploy is mounted into the runner container → maps to /srv/docker/caddy/site on the host.
|
||||
# next three lines to use 'rsync'
|
||||
# echo "Syncing built site to /deploy ..."
|
||||
# rsync -av --delete public/ /deploy/
|
||||
# echo "Deploy complete."
|
||||
# next 4 lines to just use cli commands
|
||||
echo "Syncing built site to /deploy ..."
|
||||
rm -rf /deploy/*
|
||||
cp -a public/. /deploy/
|
||||
echo "Deploying to live site ..."
|
||||
rm -rf /deploy-live/*
|
||||
cp -a public/. /deploy-live/
|
||||
echo "Deploy complete."
|
||||
|
||||
Reference in New Issue
Block a user