This commit is contained in:
parent
d1e4e93e4a
commit
cf26695719
4
.github/workflows/default.yaml
vendored
4
.github/workflows/default.yaml
vendored
@ -61,7 +61,7 @@ jobs:
|
|||||||
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
|
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
|
||||||
chmod 600 /tmp/id_rsa
|
chmod 600 /tmp/id_rsa
|
||||||
mkdir -p ~/.config/rclone
|
mkdir -p ~/.config/rclone
|
||||||
echo -e "[sftp-remote]\ntype = sftp\nhost = ${SSH_HOST}\nuser = ${SSH_USER}\nport = ${SSH_PORT}\nkey_file = /tmp/id_rsa\nuse_insecure_cipher = false\nmd5sum_command = none\nsha1sum_command = none" > ~/.config/rclone/rclone.conf
|
echo -e "[sftp-remote]\ntype = sftp\nhost = ${SSH_HOST}\nuser = ${SSH_USER}\nport = ${SSH_PORT}\nkey_file = /tmp/id_rsa" > ~/.config/rclone/rclone.conf
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
SSH_HOST: ${{ vars.SSH_HOST }}
|
SSH_HOST: ${{ vars.SSH_HOST }}
|
||||||
@ -70,6 +70,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Deploy Changed Files via rclone
|
- name: 🚀 Deploy Changed Files via rclone
|
||||||
run: |
|
run: |
|
||||||
rclone sync --update -P ./dist/ sftp-remote:${REMOTE_DIR} --sftp-key-file /tmp/id_rsa -v --ignore-existing --transfers 4
|
rclone sync --update --progress --stats-one-line ./dist/ sftp-remote:${REMOTE_DIR} --transfers 4
|
||||||
env:
|
env:
|
||||||
REMOTE_DIR: ${{ vars.REMOTE_DIR }}
|
REMOTE_DIR: ${{ vars.REMOTE_DIR }}
|
||||||
|
Loading…
Reference in New Issue
Block a user