This commit is contained in:
parent
0fb9bd18b8
commit
d51387057b
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
SSH_USER: ${{ secrets.PUBLISHER_USER }}
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }}
|
||||||
SSH_HOST: ${{ secrets.PUBLISHER_HOST }}
|
SSH_HOST: ${{ secrets.PUBLISHER_HOST }}
|
||||||
SSH_PORT: ${{ secrets.PUBLISHER_PORT }}
|
SSH_PORT: ${{ secrets.PUBLISHER_PORT }}
|
||||||
|
@ -33,4 +34,4 @@ jobs:
|
||||||
apt update && apt install -y rsync
|
apt update && apt install -y rsync
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
ssh-keyscan -p $SSH_PORT $SSH_HOST > ~/.ssh/known_hosts
|
ssh-keyscan -p $SSH_PORT $SSH_HOST > ~/.ssh/known_hosts
|
||||||
rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public/ publisher@$SSH_HOST:/usr/share/nginx/html/
|
rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public/ $SSH_USER@$SSH_HOST:/app
|
||||||
|
|
Loading…
Add table
Reference in a new issue