init
Deploy Frontend / deploy (push) Failing after 9s

This commit is contained in:
Qiu
2026-06-19 18:14:41 +08:00
commit fd7ba0ff96
2 changed files with 343 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Deploy Frontend
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H 192.168.31.185 >> ~/.ssh/known_hosts
- name: Deploy
run: |
scp -r ./* root@192.168.31.185:/data/apps/ci-cd/frontend/