From 7e4f0495d9747ad34c860a110abf139548ccab91 Mon Sep 17 00:00:00 2001 From: Florian Otto Date: Mon, 27 Apr 2026 18:07:18 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Workflow=20f=C3=BCr=20die=20Bereits?= =?UTF-8?q?tellung=20der=20Website=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..edb6740 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,21 @@ +name: Deploy Website +on: + push: + branches: + - main # Ändere dies in 'master', falls dein Haupt-Branch so heißt + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Trigger Pull on Server + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SERVER_SSH_KEY }} + script: | + echo "Deploying burgerrechner.de..." + cd /opt/my-web-apps/burgerrechner.de + git pull origin main + chown -R 33:33 . \ No newline at end of file