diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml index 484aede..6060161 100644 --- a/.gitea/workflows/build-deploy.yaml +++ b/.gitea/workflows/build-deploy.yaml @@ -1,42 +1,35 @@ name: Gitea Actions - Hugo Deploy run-name: ${{ gitea.actor }} is deploying Hugo 🚀 - on: push: branches: - main - jobs: Hugo-Deploy: runs-on: ubuntu-latest - 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: Setup Hugo uses: peaceiris/actions-hugo@v3 with: hugo-version: "0.152.2" extended: true - - name: Build Hugo site - run: | - cd www-hahmann-trier-de - hugo --minify - + run: | + cd www-hahmann-trier-de + 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/*" + source: "www-hahmann-trier-de/public/*" target: "/var/www/www-hahmann-trier-de/" - strip_components: 1 + strip_components: 2