Adding workflow for site publishing.

This commit is contained in:
2025-02-20 11:54:48 -05:00
parent 48f01c4672
commit 52a7cf5554
+24
View File
@@ -0,0 +1,24 @@
name: Hugo site deploy & publish
on:
push:
branches:
- main
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- name: Do a git checkout including submodules
uses: actions/checkout@v4
with:
submodules: true
- name: Generate and deploy website
uses: ronvanderheijden/hugo-rsync-deployment@master
env:
VPS_DEPLOY_KEY: ${{ secrets.HUGO_DEPLOY_PRIVATE_KEY }}
VPS_DEPLOY_USER: ${{ secrets.HUGO_DEPLOY_USERNAME }}
VPS_DEPLOY_HOST: 192.168.1.254
VPS_DEPLOY_DEST: ${{ secrets.HUGO_SITE_LOCATION }}
with:
hugo-arguments: '--minify'
rsync-arguments: '--archive --compress --xattrs --dry-run'