From 52a7cf55547c24f89be4d2cdd516b79848f22be1 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 20 Feb 2025 11:54:48 -0500 Subject: [PATCH] Adding workflow for site publishing. --- .gitea/workflows/hugo_site_deployment.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/hugo_site_deployment.yml diff --git a/.gitea/workflows/hugo_site_deployment.yml b/.gitea/workflows/hugo_site_deployment.yml new file mode 100644 index 0000000..f14af37 --- /dev/null +++ b/.gitea/workflows/hugo_site_deployment.yml @@ -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' \ No newline at end of file