This commit is contained in:
parent
91601bb236
commit
f130b35bd5
1 changed files with 1 additions and 3 deletions
|
@ -16,11 +16,9 @@ jobs:
|
|||
run: hugo --minify
|
||||
- name: pre-compress
|
||||
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
|
||||
- name: Debug rsync target
|
||||
run: echo "${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}"
|
||||
- name: Deploy via rsync
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
rsync -rlgoDzvc -i --delete -e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" public/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}
|
||||
rsync -rlgoDzvc -i --delete -e "ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" public/ debian@gallowelding.com:/data/gallowelding.com
|
Loading…
Add table
Reference in a new issue