feat: changed upload program to rsync
Some checks failed
Gitea Actions Demo / Build (push) Failing after 13s
Some checks failed
Gitea Actions Demo / Build (push) Failing after 13s
This commit is contained in:
@@ -25,10 +25,10 @@ jobs:
|
|||||||
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
|
||||||
echo "HELOO" > ../test
|
echo "HELOO" > ../test
|
||||||
sudo chmod 666 ../test
|
sudo chmod 666 ../test
|
||||||
scp -i ../private.key -P ${{ secrets.BLOG_PORT }} ../test blog@madeio.net:/var/www/html/
|
rsync -a -e 'ssh -i ${{ github.workspace }}/../private.key -p ${{ secrets.BLOG_PORT }}' ../test blog@madeio.net:/var/www/html/
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{secrets.BLOG_SSH_KEY}}
|
SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
||||||
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||||
- run: |
|
- run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
|
|||||||
Reference in New Issue
Block a user