mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 13:35:09 +03:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
cb0310bbcd
commit
a7ddc582b1
32
.github/workflows/mikrotik_patch_7.yml
vendored
32
.github/workflows/mikrotik_patch_7.yml
vendored
@ -407,22 +407,22 @@ jobs:
|
|||||||
sudo rm chr-$LATEST_VERSION$ARCH.img
|
sudo rm chr-$LATEST_VERSION$ARCH.img
|
||||||
|
|
||||||
|
|
||||||
# - name: Upload Files
|
- name: Upload Files
|
||||||
# if: steps.get_latest.outputs.has_new_version == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true'
|
||||||
# run: |
|
run: |
|
||||||
# sudo mkdir -p ./publish/$LATEST_VERSION
|
sudo mkdir -p ./publish/$LATEST_VERSION
|
||||||
# echo $LATEST_VERSION $BUILD_TIME | sudo tee ./publish/NEWESTa7.${{ matrix.channel }}
|
echo $LATEST_VERSION $BUILD_TIME | sudo tee ./publish/NEWESTa7.${{ matrix.channel }}
|
||||||
# sudo cp CHANGELOG ./publish/$LATEST_VERSION/
|
sudo cp CHANGELOG ./publish/$LATEST_VERSION/
|
||||||
# sudo cp ./all_packages/*.npk ./publish/$LATEST_VERSION/
|
sudo cp ./all_packages/*.npk ./publish/$LATEST_VERSION/
|
||||||
# sudo chown -R root:root ./publish/
|
sudo chown -R root:root ./publish/
|
||||||
# sudo apt-get install -y lftp ssh sshpass > /dev/null 2>&1
|
sudo apt-get install -y lftp ssh sshpass > /dev/null 2>&1
|
||||||
# sudo -E lftp -u ${{ secrets.SSH_USERNAME }},'${{ secrets.SSH_PASSWORD }}' sftp://${{ secrets.SSH_SERVER }}:${{ secrets.SSH_PORT }} <<EOF
|
sudo -E lftp -u ${{ secrets.SSH_USERNAME }},'${{ secrets.SSH_PASSWORD }}' sftp://${{ secrets.SSH_SERVER }}:${{ secrets.SSH_PORT }} <<EOF
|
||||||
# set sftp:auto-confirm yes
|
set sftp:auto-confirm yes
|
||||||
# mirror --reverse --verbose --only-newer ./publish ${{ secrets.SSH_DIRECTORY }}
|
mirror --reverse --verbose --only-newer ./publish ${{ secrets.SSH_DIRECTORY }}
|
||||||
# bye
|
bye
|
||||||
# EOF
|
EOF
|
||||||
# sudo apt-get install ssh sshpass
|
sudo apt-get install ssh sshpass
|
||||||
# sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_SERVER }} "chown -R 32768:32768 /rw/disk/${{ secrets.SSH_DIRECTORY }}/"
|
sshpass -p "${{ secrets.SSH_PASSWORD }}" ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_SERVER }} "chown -R 32768:32768 /rw/disk/${{ secrets.SSH_DIRECTORY }}/"
|
||||||
|
|
||||||
- name: Clear Cloudflare cache
|
- name: Clear Cloudflare cache
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true'
|
||||||
|
Loading…
Reference in New Issue
Block a user