Files
hugo_it-services/.gitea/workflows/hugo_site_deployment.yml
T
2025-02-20 13:06:24 -05:00

24 lines
795 B
YAML

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: '--source=/src/it-services --configDir=/src/it-services/config/ -e production'
rsync-arguments: '--archive --compress --xattrs --dry-run'