27 lines
590 B
YAML
27 lines
590 B
YAML
name: 🚀 Deploy to Hetzner
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Deploy via SSH
|
|
uses: appleboy/ssh-action@v1.0.0
|
|
with:
|
|
host: 88.99.209.207
|
|
username: oliver
|
|
key: ${{ secrets.HETZNER_SSH_KEY }}
|
|
port: 22
|
|
script: |
|
|
cd rss-news
|
|
git pull origin main
|
|
source .venv/bin/activate
|
|
pip install -r requirements.txt
|
|
sudo systemctl restart rss-app
|