modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-07-01 12:04:53 +08:00
parent b1edb62912
commit b200f03724

View File

@ -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: |