Changes to workflow
All checks were successful
Gitea Actions - Hugo Deploy / Hugo-Deploy (push) Successful in 14s

This commit is contained in:
2025-11-25 21:47:02 +01:00
parent ef9761037f
commit d9db369291

View File

@@ -1,42 +1,35 @@
name: Gitea Actions - Hugo Deploy name: Gitea Actions - Hugo Deploy
run-name: ${{ gitea.actor }} is deploying Hugo 🚀 run-name: ${{ gitea.actor }} is deploying Hugo 🚀
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
Hugo-Deploy: Hugo-Deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 Triggered by a ${{ gitea.event_name }} event." - run: echo "🎉 Triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 Running on ${{ runner.os }}." - run: echo "🐧 Running on ${{ runner.os }}."
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v3 uses: peaceiris/actions-hugo@v3
with: with:
hugo-version: "0.152.2" hugo-version: "0.152.2"
extended: true extended: true
- name: Build Hugo site - name: Build Hugo site
run: | run: |
cd www-hahmann-trier-de cd www-hahmann-trier-de
hugo --minify hugo --minify
- name: Deploy to Ubuntu server via SCP - name: Deploy to Ubuntu server via SCP
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@v0.1.7
with: with:
host: ${{ secrets.DEPLOY_HOST }} host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }} username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }} key: ${{ secrets.DEPLOY_KEY }}
source: "public/*" source: "www-hahmann-trier-de/public/*"
target: "/var/www/www-hahmann-trier-de/" target: "/var/www/www-hahmann-trier-de/"
strip_components: 1 strip_components: 2