[HUGO] Automated PR for workflow-test-run_2025-07-21T13-30-22 - #6 #6
@@ -93,14 +93,10 @@ jobs:
|
|||||||
uses: JustinBeckwith/linkinator-action@v1.11.0
|
uses: JustinBeckwith/linkinator-action@v1.11.0
|
||||||
with:
|
with:
|
||||||
paths: .
|
paths: .
|
||||||
|
serverRoot: ./
|
||||||
|
format: json
|
||||||
recurse: true
|
recurse: true
|
||||||
markdown: 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
|
- name: Gotify Notification
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -157,35 +153,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
hugo-version: "latest"
|
hugo-version: "latest"
|
||||||
extended: true
|
extended: true
|
||||||
- name: Generate & deploy site
|
# - name: Generate & deploy site
|
||||||
run: |
|
# run: |
|
||||||
hugo version
|
# hugo version
|
||||||
hugo --minify
|
# hugo --minify
|
||||||
hugo --source .
|
# hugo --source .
|
||||||
ls -al
|
# ls -al
|
||||||
|
- name: Generate and deploy website
|
||||||
# - name: Generate and deploy website
|
uses: ronvanderheijden/hugo-rsync-deployment@master
|
||||||
# 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: /home/charish/.docker/config/appdata/hugo
|
with:
|
||||||
# with:
|
hugo-arguments: '--minify --source .'
|
||||||
# hugo-arguments: '--minify --source .'
|
rsync-arguments: '--archive --compress --xattrs --delete'
|
||||||
# rsync-arguments: '--archive --dry-run --compress --xattrs --delete'
|
- name: Restart Hugo Container
|
||||||
# - name: Restart Hugo Container (Optional)
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
# uses: appleboy/ssh-action@v1.0.3
|
with:
|
||||||
# with:
|
host: ${{ secrets.HUGO_SITE_HOST }}
|
||||||
# host: ${{ secrets.HUGO_SITE_HOST }}
|
username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
||||||
# username: ${{ secrets.HUGO_DEPLOY_USERNAME }}
|
password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
|
||||||
# password: ${{ secrets.HUGO_DEPLOY_PASSWORD }}
|
script: |
|
||||||
# script: |
|
docker restart hugo
|
||||||
# docker restart hugo
|
- name: Gotify Notification
|
||||||
# - name: Gotify Notification
|
uses: eikendev/gotify-action@master
|
||||||
# uses: eikendev/gotify-action@master
|
with:
|
||||||
# with:
|
gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
||||||
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
|
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||||
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
notification_title: 'GITEA: Hugo'
|
||||||
# notification_title: 'GITEA: Hugo'
|
notification_message: 'Hugo deployment successful!'
|
||||||
# notification_message: 'Hugo deployment successful!'
|
|
||||||
Reference in New Issue
Block a user