mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 05:25:00 +03:00
modified: .github/workflows/mikrotik_patch.yml
This commit is contained in:
parent
b1edb62912
commit
b200f03724
18
.github/workflows/mikrotik_patch.yml
vendored
18
.github/workflows/mikrotik_patch.yml
vendored
@ -268,21 +268,17 @@ jobs:
|
||||
sudo rm *.vdi
|
||||
sudo rm *.img
|
||||
|
||||
- name: Create Publish Directory
|
||||
- name: Upload Files
|
||||
run: |
|
||||
mkdir ./publish
|
||||
cp CHANGELOG.txt ./publish/
|
||||
cp ./new_iso/*.npk ./publish/
|
||||
|
||||
# - name: Publish files
|
||||
# uses: buxianshan/fine-sftp-deployer@v0.1.5
|
||||
# with:
|
||||
# server: ${{ secrets.SSH_SERVER }}
|
||||
# username: ${{ secrets.SSH_USERNAME }}
|
||||
# ssh_private_key: ${{ secrets.SSH_KEY }}
|
||||
# port: ${{ secrets.SSH_PORT }}
|
||||
# remote_path: "${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}/"
|
||||
# local_path: ./publish/*
|
||||
sudo apt-get install -y lftp
|
||||
sudo lftp -u ${{ secrets.SSH_USERNAME }},"${{ secrets.SSH_PASSWORD }}" sftp://${{ secrets.SSH_SERVER }}:${{ secrets.SSH_PORT }} <<EOF
|
||||
set sftp:auto-confirm yes
|
||||
mirror --reverse --verbose ./publish ${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}
|
||||
bye
|
||||
EOF
|
||||
|
||||
- name: Delete Release tag ${{ env.LATEST_VERSION }}
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user