Changes workflow
Some checks failed
Gitea Actions - Hugo Deploy / Hugo-Deploy (push) Failing after 8s

This commit is contained in:
2025-11-25 21:34:46 +01:00
parent 74dfbfd663
commit ed20b1424d

View File

@@ -2,42 +2,39 @@ 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.134.1" hugo-version: "0.134.1"
extended: true extended: true
- name: Build Hugo site - name: Build Hugo site
run: hugo --minify run: 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: "public/*"
target: "/var/www/www-hahmann-trier-de/" target: "/var/www/www-hahmann-trier-de/"
strip_components: 1 strip_components: 1
- name: Deployment Status
run: echo "🍏 Deployment finished with status: ${{ job.status }}."