Compare commits
20 Commits
c2a7724b0c
...
5863c295b7
| Author | SHA1 | Date |
|---|---|---|
|
|
5863c295b7 | |
|
|
e063b3cd4a | |
|
|
9c451f12c5 | |
|
|
6054312ad4 | |
|
|
2b30a6c4cb | |
|
|
541d155bc3 | |
|
|
db1fa813c2 | |
|
|
c092e65ae0 | |
|
|
15624454e8 | |
|
|
77dc3ae940 | |
|
|
a7dceb4f7b | |
|
|
ea1afcd6ae | |
|
|
8a32c10273 | |
|
|
bc8a98fef4 | |
|
|
75722d064b | |
|
|
72c5c1a3d6 | |
|
|
ab2056dda3 | |
|
|
9247ed74bf | |
|
|
3ce470946d | |
|
|
6c022d47d9 |
|
|
@ -27,10 +27,13 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy to Server via rsync
|
- name: Deploy to Server via rsync
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -y -qq rsync openssh-client
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
--exclude=".git/" \
|
--exclude=".git/" \
|
||||||
--exclude=".gitea/" \
|
--exclude=".gitea/" \
|
||||||
|
|
@ -44,4 +47,4 @@ jobs:
|
||||||
--exclude="tools/" \
|
--exclude="tools/" \
|
||||||
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
|
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
|
||||||
./ \
|
./ \
|
||||||
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
|
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue