Taking out the pre-built rsync action.
Deploy Hugo Site / Check and Create PR (push) Successful in 13s
Deploy Hugo Site / Hugo Sanity Check (push) Successful in 21s
Deploy Hugo Site / PR Merge (push) Successful in 26s
Deploy Hugo Site / Build and Deploy to Server (push) Failing after 16s

This commit is contained in:
2025-07-22 14:49:38 -04:00
parent d122a1a40c
commit 2d4207850c
+11 -12
View File
@@ -153,22 +153,21 @@ jobs:
with:
hugo-version: "latest"
extended: true
# - name: Generate & deploy site
# run: |
# hugo version
# hugo --minify
# hugo --source .
# ls -al
- name: Generate and deploy website
uses: ronvanderheijden/hugo-rsync-deployment@master
- name: Generate Hugo Site & Deploy for Docker
env:
VPS_DEPLOY_KEY: ${{ secrets.VPS_DEPLOY_KEY }}
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
VPS_DEPLOY_DEST: /home/charish/.docker/config/appdata/hugo
with:
hugo-arguments: '--minify --source .'
rsync-arguments: '--archive --compress --xattrs --delete'
VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
run: |
mkdir -p ${HOME}/.ssh
echo "${{ secrets.VPS_DEPLOY_KEY }}" > ${HOME}/.ssh/id_rsa_deploy
chmod 600 ${HOME}/.ssh/id_rsa_deploy
hugo version
hugo --minify --source .
rsync --progress -avz -e 'ssh -i ${HOME}/.ssh/id_rsa_deploy -o StrictHostKeyChecking=no' \
./public \
${VPS_DEPLOY_USER}@${VPS_DEPLOY_HOST}:${VPS_DEPLOY_DEST}
- name: Restart Hugo Container
uses: appleboy/ssh-action@v1.0.3
with: