Auto Merge of PR 7 - workflow-test-run_2025-07-21T13-30-22

Merged by Trez.One
This commit was merged in pull request #7.
This commit is contained in:
2025-07-22 14:50:42 -04:00
+11 -12
View File
@@ -153,22 +153,21 @@ jobs:
with: with:
hugo-version: "latest" hugo-version: "latest"
extended: true extended: true
# - name: Generate & deploy site - name: Generate Hugo Site & Deploy for Docker
# run: |
# hugo version
# hugo --minify
# hugo --source .
# ls -al
- name: Generate and deploy website
uses: ronvanderheijden/hugo-rsync-deployment@master
env: env:
VPS_DEPLOY_KEY: ${{ secrets.VPS_DEPLOY_KEY }} VPS_DEPLOY_KEY: ${{ secrets.VPS_DEPLOY_KEY }}
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }} VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }} VPS_DEPLOY_HOST: ${{ secrets.HUGO_SITE_HOST }}
VPS_DEPLOY_DEST: /home/charish/.docker/config/appdata/hugo VPS_DEPLOY_DEST: ${{ secrets.VPS_DEPLOY_DEST }}
with: run: |
hugo-arguments: '--minify --source .' mkdir -p ${HOME}/.ssh
rsync-arguments: '--archive --compress --xattrs --delete' 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 - name: Restart Hugo Container
uses: appleboy/ssh-action@v1.0.3 uses: appleboy/ssh-action@v1.0.3
with: with: