upgrade project and add deploy workflow
Some checks failed
Deploy Abondance Bot / deploy (push) Failing after 24s

This commit is contained in:
Shinuwa 2026-06-28 20:02:44 +02:00
parent 0dabb7c3c0
commit 3a50bd061a
10 changed files with 358 additions and 108 deletions

View file

@ -0,0 +1,28 @@
name: Deploy Abondance Bot
on:
push:
branches:
- main
jobs:
deploy:
runs-on: docker
steps:
- name: Deploy on WebApps
env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
run: |
apt-get update
apt-get install -y openssh-client
mkdir -p ~/.ssh
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no \
-i ~/.ssh/id_ed25519 \
-p 2911 \
shinuwa@192.168.0.100 \
"sudo /usr/local/bin/deploy-abondance-bot"