fix actions AGAIN
This commit is contained in:
parent
74ecb55817
commit
76c6f75787
@ -10,6 +10,7 @@ jobs:
|
|||||||
- name: Install git
|
- name: Install git
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
|
which rsync
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
@ -25,7 +26,9 @@ jobs:
|
|||||||
HOST1: ${{ secrets.HOST1 }}
|
HOST1: ${{ secrets.HOST1 }}
|
||||||
USER: ${{ secrets.USER }}
|
USER: ${{ secrets.USER }}
|
||||||
run: |
|
run: |
|
||||||
|
echo "Removing old website..."
|
||||||
ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*'
|
ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*'
|
||||||
|
echo "Deploying new website..."
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
--exclude '.git*' \
|
--exclude '.git*' \
|
||||||
./ $USER@$HOST1:/var/www/elia.network/html/
|
./ $USER@$HOST1:/var/www/elia.network/html/
|
||||||
|
Loading…
Reference in New Issue
Block a user