0
Fork 0
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:
Gao Sun 2021-07-31 00:24:32 +08:00
parent 31b6c696d2
commit 22e111ea0a
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31

View file

@ -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 }}