mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore: add rsync step
This commit is contained in:
parent
31b6c696d2
commit
22e111ea0a
1 changed files with 18 additions and 0 deletions
18
.github/workflows/deploy-dev.yml
vendored
18
.github/workflows/deploy-dev.yml
vendored
|
@ -39,3 +39,21 @@ jobs:
|
|||
run: rm -rf node_modules packages/*/node_modules && pnpm i
|
||||
env:
|
||||
NODE_ENV: production
|
||||
|
||||
- name: Setup env
|
||||
working-directory: packages/core
|
||||
run: echo "$DEV_CORE_ENV" >> .env
|
||||
env:
|
||||
DEV_CORE_ENV: ${{ secrets.DEV_CORE_ENV }}
|
||||
|
||||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.DEV_SSH_KEY }}
|
||||
known_hosts: ${{ secrets.DEV_SSH_KNOWN_HOSTS }}
|
||||
config: ${{ secrets.DEV_SSH_CONFIG }}
|
||||
|
||||
- name: Rsync folder
|
||||
run: rsync --filter='exclude .git' -r -a ./ $DEV_SERVER_IP:~/logto
|
||||
env:
|
||||
DEV_SERVER_IP: ${{ secrets.DEV_SERVER_IP }}
|
||||
|
|
Loading…
Reference in a new issue