From ed20b1424d8df8a461c758227c16bd62bf9bfe37 Mon Sep 17 00:00:00 2001 From: Lucas Hahmann Date: Tue, 25 Nov 2025 21:34:46 +0100 Subject: [PATCH] Changes workflow --- .gitea/workflows/build-deploy.yaml | 61 ++++++++++++++---------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml index f9dfafa..1b230e9 100644 --- a/.gitea/workflows/build-deploy.yaml +++ b/.gitea/workflows/build-deploy.yaml @@ -2,42 +2,39 @@ name: Gitea Actions - Hugo Deploy run-name: ${{ gitea.actor }} is deploying Hugo 🚀 on: - push: - branches: - - main + push: + branches: + - main jobs: - Hugo-Deploy: - runs-on: ubuntu-latest + Hugo-Deploy: + runs-on: ubuntu-latest - steps: - - run: echo "🎉 Triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 Running on ${{ runner.os }}." + steps: + - run: echo "🎉 Triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 Running on ${{ runner.os }}." - - name: Check out repository code - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 0 + - name: Check out repository code + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 - with: - hugo-version: "0.134.1" - extended: true + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: "0.134.1" + extended: true - - name: Build Hugo site - run: hugo --minify + - name: Build Hugo site + run: hugo --minify - - name: Deploy to Ubuntu server via SCP - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ secrets.DEPLOY_HOST }} - username: ${{ secrets.DEPLOY_USER }} - key: ${{ secrets.DEPLOY_KEY }} - source: "public/*" - target: "/var/www/www-hahmann-trier-de/" - strip_components: 1 - - - name: Deployment Status - run: echo "🍏 Deployment finished with status: ${{ job.status }}." \ No newline at end of file + - name: Deploy to Ubuntu server via SCP + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.DEPLOY_HOST }} + username: ${{ secrets.DEPLOY_USER }} + key: ${{ secrets.DEPLOY_KEY }} + source: "public/*" + target: "/var/www/www-hahmann-trier-de/" + strip_components: 1