Skip to content

chore: add github workflow #2

chore: add github workflow

chore: add github workflow #2

Workflow file for this run

name: Deploy to Hetzner
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Copy files via scp
run: scp -r . [email protected]:/home/ubuntu/nostr/relayer
- name: Run Docker Compose
run: |
ssh [email protected] << 'EOF'
cd /home/ubuntu/nostr/relayer
docker-compose pull
docker-compose up -d
EOF