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 }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
- name: Add known host
|
- name: Add known host
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
sudo chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
sudo echo "${{ secrets.KNOWN_HOST_KEY }}" > ~/.ssh/known_hosts
|
echo "${{ secrets.KNOWN_HOST_KEY }}" > ~/.ssh/known_hosts
|
||||||
- name: Deploy with rsync
|
- name: Deploy with rsync
|
||||||
run: rsync -atv --delete --progress --checksum --whole-file -e ssh dist/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.DEPLOY_LOCATION }}
|
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