From 62e0c554dff3068abcf80cce4b59db1ef4edd0e7 Mon Sep 17 00:00:00 2001 From: Marko Djordjevic Date: Thu, 12 Feb 2026 20:23:13 +0100 Subject: [PATCH] use github actions again --- .github/workflows/deploy.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9451fdf..d9b2c76 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,21 +8,10 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Trigger deploy webhook - env: - WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }} - run: | - # Build the payload - PAYLOAD='{"ref":"refs/heads/master","pusher":{"name":"github-actions"}}' - - # Compute HMAC signature - SIGNATURE="sha256=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | awk '{print $2}')" - - # Send webhook - curl -sf -X POST \ - -H "Content-Type: application/json" \ - -H "X-Hub-Signature-256: $SIGNATURE" \ - -d "$PAYLOAD" \ - https://love-tin.exe.xyz:9000/deploy - - echo "Deploy triggered successfully" + - name: Deploy via SSH + uses: appleboy/ssh-action@v1 + with: + host: love-tin.exe.xyz + username: exedev + key: ${{ secrets.DEPLOY_SSH_KEY }} + script: /home/exedev/deploy.sh