From 79bdb57e98b40c22a4fc87f2b67b35464208c91d Mon Sep 17 00:00:00 2001 From: Oliver G Date: Mon, 14 Jul 2025 10:31:45 +0200 Subject: [PATCH] Create deploy.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 Add GitHub Action for auto-deploy to Hetzner --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5d55808 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +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