chore: add gitea auto deploy workflow
Deploy Speaking Practice / deploy (push) Failing after 12m14s

This commit is contained in:
TTlaji committed 2026-06-05 01:06:13 +08:00
1 parent 1e9228e50a
commit fa3111ce0b
4 files changed
+35 -16

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
name: Deploy Speaking Practice
on:
push:
branches:
- feature/deepseek-subtitle-ai
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to server
run: |
set -euo pipefail
mkdir -p ~/.ssh
chmod 700 ~/.ssh
printf '%s\n' "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H "${{ secrets.SERVER_HOST }}" >> ~/.ssh/known_hosts
ssh -i ~/.ssh/deploy_key \
-o IdentitiesOnly=yes \
"${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}" \
"cd /opt/speaking-practice && ./scripts/update-server.sh"