modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-07-01 05:49:44 +08:00
parent 5d7455b854
commit c26b1fecea

View file

@ -278,16 +278,15 @@ jobs:
cp CHANGELOG.txt ./publish/ cp CHANGELOG.txt ./publish/
cp ./new_iso/*.npk ./publish/ cp ./new_iso/*.npk ./publish/
- name: Sync files - name: Publish files
uses: SamKirkland/web-deploy@v1 uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with: with:
target-server: ${{ secrets.SSH_SERVER }} server: ${{ secrets.SSH_SERVER }}
remote-user: ${{ secrets.SSH_USERNAME }} username: ${{ secrets.SSH_USERNAME }}
private-ssh-key: ${{ secrets.SSH_KEY }} ssh_private_key: ${{ secrets.SSH_KEY }}
ssh-port: ${{ secrets.SSH_PORT }} port: ${{ secrets.SSH_PORT }}
destination-path: "${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}/" remote_path: "${{ secrets.SSH_DIRECTORY }}/${{ env.LATEST_VERSION }}/"
source-path: ./publish/ local_path: ./publish/*
rsync-options: --archive --verbose --stats --compress --delete-after --human-readable
- name: Delete Release tag ${{ env.LATEST_VERSION }} - name: Delete Release tag ${{ env.LATEST_VERSION }}
run: | run: |