From d122a1a40c0c475daf7d22d67897482b71668e19 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Tue, 22 Jul 2025 14:18:19 -0400 Subject: [PATCH] Adding to workflow. --- .gitea/workflows/hugo_site_deployment.yml | 71 +++++++++++------------ 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/.gitea/workflows/hugo_site_deployment.yml b/.gitea/workflows/hugo_site_deployment.yml index 2d0b143..0bc5082 100644 --- a/.gitea/workflows/hugo_site_deployment.yml +++ b/.gitea/workflows/hugo_site_deployment.yml @@ -93,14 +93,10 @@ jobs: uses: JustinBeckwith/linkinator-action@v1.11.0 with: paths: . + serverRoot: ./ + format: json recurse: true markdown: true - # - name: Broken Link check - # uses: BoundfoxStudios/action-hugo-link-check@v2 - # with: - # hugo-root: ./ - # hugo-content-dir: ./content - # hugo-config: ./config/ - name: Gotify Notification uses: eikendev/gotify-action@master with: @@ -157,35 +153,34 @@ jobs: with: hugo-version: "latest" extended: true - - 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!' \ No newline at end of file + # - 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 --compress --xattrs --delete' + - name: Restart Hugo Container + 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!' \ No newline at end of file -- 2.52.0