mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 21:44:59 +03:00
modified: .github/workflows/mikrotik_patch.yml
modified: .gitignore
This commit is contained in:
parent
be14473a63
commit
d1c7aed294
25
.github/workflows/mikrotik_patch.yml
vendored
25
.github/workflows/mikrotik_patch.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
branch: ["7"]
|
branch: [7]
|
||||||
channel: [stable, testing]
|
channel: [stable, testing]
|
||||||
env:
|
env:
|
||||||
TZ: 'Asia/Shanghai'
|
TZ: 'Asia/Shanghai'
|
||||||
@ -26,6 +26,7 @@ jobs:
|
|||||||
CUSTOM_NPK_SIGN_PUBLIC_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PUBLIC_KEY }}
|
CUSTOM_NPK_SIGN_PUBLIC_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PUBLIC_KEY }}
|
||||||
MIKRO_LICENSE_PUBLIC_KEY: ${{ secrets.MIKRO_LICENSE_PUBLIC_KEY }}
|
MIKRO_LICENSE_PUBLIC_KEY: ${{ secrets.MIKRO_LICENSE_PUBLIC_KEY }}
|
||||||
MIKRO_NPK_SIGN_PUBLIC_LKEY: ${{ secrets.MIKRO_NPK_SIGN_PUBLIC_LKEY }}
|
MIKRO_NPK_SIGN_PUBLIC_LKEY: ${{ secrets.MIKRO_NPK_SIGN_PUBLIC_LKEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -198,7 +199,6 @@ jobs:
|
|||||||
sudo umount /dev/nbd0
|
sudo umount /dev/nbd0
|
||||||
sudo qemu-nbd -d /dev/nbd0
|
sudo qemu-nbd -d /dev/nbd0
|
||||||
sudo rm -rf ./install
|
sudo rm -rf ./install
|
||||||
sudo rm -rf ./new_iso
|
|
||||||
sudo zip install-image-$LATEST_VERSION.zip ./install-image-$LATEST_VERSION.img
|
sudo zip install-image-$LATEST_VERSION.zip ./install-image-$LATEST_VERSION.img
|
||||||
sudo rm ./install-image-$LATEST_VERSION.img
|
sudo rm ./install-image-$LATEST_VERSION.img
|
||||||
|
|
||||||
@ -264,6 +264,25 @@ jobs:
|
|||||||
sudo rm *.vdi
|
sudo rm *.vdi
|
||||||
sudo rm *.img
|
sudo rm *.img
|
||||||
|
|
||||||
|
- name: Create Publish Directory
|
||||||
|
run: |
|
||||||
|
mkdir ./publish
|
||||||
|
cp CHANGELOG.txt ./publish/
|
||||||
|
cp mikrotik-$LATEST_VERSION.iso ./publish/
|
||||||
|
cp chr-$LATEST_VERSION*.zip ./publish/
|
||||||
|
cp netinstall-$LATEST_VERSION.zip ./publish/
|
||||||
|
cp install-image-$LATEST_VERSION.zip ./publish/
|
||||||
|
cp all_packages-x86-$LATEST_VERSION.zip ./publish/
|
||||||
|
cp ./new_iso/*.npk ./publish/
|
||||||
|
|
||||||
|
- name: Sync files
|
||||||
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
||||||
|
with:
|
||||||
|
server: ${{ secrets.FTP_SERVER }}
|
||||||
|
username: ${{ secrets.FTP_USERNAME }}
|
||||||
|
password: ${{ secrets.FTP_PASSWORD }}
|
||||||
|
server-dir: "${{ secrets.FTP_DIRECTORY }}/${{ env.LATEST_VERSION }}/"
|
||||||
|
local-dir: ./publish/
|
||||||
|
|
||||||
|
|
||||||
- name: Delete Release tag ${{ env.LATEST_VERSION }}
|
- name: Delete Release tag ${{ env.LATEST_VERSION }}
|
||||||
@ -287,7 +306,7 @@ jobs:
|
|||||||
name: "RouterOS ${{ env.LATEST_VERSION }}"
|
name: "RouterOS ${{ env.LATEST_VERSION }}"
|
||||||
body_path: "CHANGELOG.txt"
|
body_path: "CHANGELOG.txt"
|
||||||
tag_name: ${{ env.LATEST_VERSION }}
|
tag_name: ${{ env.LATEST_VERSION }}
|
||||||
make_latest: ${{ matrix.channel == 'stable' && matrix.branch == '7' }}
|
make_latest: ${{ matrix.channel == 'stable' && matrix.branch == 7 }}
|
||||||
prerelease: ${{ matrix.channel == 'testing' }}
|
prerelease: ${{ matrix.channel == 'testing' }}
|
||||||
files: |
|
files: |
|
||||||
mikrotik-${{ env.LATEST_VERSION }}.iso
|
mikrotik-${{ env.LATEST_VERSION }}.iso
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,4 +3,6 @@ venv/
|
|||||||
test_*.py
|
test_*.py
|
||||||
keygen.py
|
keygen.py
|
||||||
keygen.bat
|
keygen.bat
|
||||||
mikrotik.ico
|
mikrotik*
|
||||||
|
*.crt
|
||||||
|
*.key
|
Loading…
Reference in New Issue
Block a user