This commit is contained in:
parent
e08e1d6979
commit
cd133371c7
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
@ -24,8 +24,8 @@ jobs:
|
|||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
- name: Add known host
|
||||
run: |
|
||||
sudo mkdir -p ~/.ssh
|
||||
sudo chmod 700 ~/.ssh
|
||||
sudo echo "${{ secrets.KNOWN_HOST_KEY }}" > ~/.ssh/known_hosts
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
echo "${{ secrets.KNOWN_HOST_KEY }}" > ~/.ssh/known_hosts
|
||||
- name: Deploy with rsync
|
||||
run: rsync -atv --delete --progress --checksum --whole-file -e ssh dist/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.DEPLOY_LOCATION }}
|
||||
|
|
Loading…
Reference in a new issue