candle-annotator/.github/workflows/deploy.yml
exe.dev user a6e763c153 Switch deploy to webhook-based approach
exe.dev SSH proxy blocks direct SSH from GitHub Actions.
Use webhook listener on port 9000 instead.

Co-authored-by: Shelley <shelley@exe.dev>
2026-02-12 15:22:30 +00:00

28 lines
813 B
YAML

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"