This commit is contained in:
1 parent
1e9228e50a
commit
fa3111ce0b
4 files changed
+35
-16
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user