From 49225a3e0cb090f0e82d1b6828efe7f761f1f57b Mon Sep 17 00:00:00 2001 From: Theo Date: Mon, 15 Sep 2025 16:58:17 +0200 Subject: [PATCH] feat: auto update script --- .gitea/workflows/auto_update.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/auto_update.yaml diff --git a/.gitea/workflows/auto_update.yaml b/.gitea/workflows/auto_update.yaml new file mode 100644 index 0000000..a2d167c --- /dev/null +++ b/.gitea/workflows/auto_update.yaml @@ -0,0 +1,22 @@ +name: Deploy on merge to main + +on: + push: + branches: + - main + +jobs: + deploy: + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run command on remote server + uses: appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + port: ${{ secrets.SSH_PORT }} + script: | + pull_site -- 2.45.2