name: Deploy to exe.dev on: push: branches: [master] 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"