... Need breakfast...
Deploy Hugo Site / Check and Create PR (push) Successful in 19s
Deploy Hugo Site / Hugo Sanity Check (push) Successful in 17s
Deploy Hugo Site / PR Merge (push) Successful in 20s
Deploy Hugo Site / Build and Deploy to Server (push) Failing after 12s

This commit is contained in:
2025-07-22 10:21:29 -04:00
parent 32c2afd941
commit 4ad3c1287c
+32 -25
View File
@@ -157,28 +157,35 @@ jobs:
with:
hugo-version: "latest"
extended: true
- name: Generate and deploy website
uses: ronvanderheijden/hugo-rsync-deployment@master
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'
rsync-arguments: '--archive --dry-run --compress --xattrs --delete'
- name: Restart Hugo Container (Optional)
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HUGO_SITE_HOST }}
username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
script: |
docker restart hugo
- name: Gotify Notification
uses: eikendev/gotify-action@master
with:
gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
notification_title: 'GITEA: Hugo'
notification_message: 'Hugo deployment successful!'
- name: Generate & deploy site
run: |
hugo version
hugo --minify
hugo --source .
ls -al
# - name: Generate and deploy website
# uses: ronvanderheijden/hugo-rsync-deployment@master
# 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 --dry-run --compress --xattrs --delete'
# - name: Restart Hugo Container (Optional)
# uses: appleboy/ssh-action@v1.0.3
# with:
# host: ${{ secrets.HUGO_SITE_HOST }}
# username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
# password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
# script: |
# docker restart hugo
# - name: Gotify Notification
# uses: eikendev/gotify-action@master
# with:
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
# notification_title: 'GITEA: Hugo'
# notification_message: 'Hugo deployment successful!'