From 28273c6a7efaafd13b0d18135843d155272a1ea3 Mon Sep 17 00:00:00 2001 From: Simon Shi Date: Mon, 14 Nov 2022 15:12:51 +0000 Subject: [PATCH] add action --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ module.prop | 1 + version.json | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 version.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..545315f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Upload zip +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Make release zip + run: | + wget https://github.com/topjohnwu/Magisk/raw/master/scripts/module_installer.sh -O META-INF/com/google/android/update-binary + zip -9 -x "*.git*" -r ../wifi_bonding.zip ./ + sha256sum ../wifi_bonding.zip > ../wifi_bonding.zip.sha256sum + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ../wifi_bonding.zip + ../wifi_bonding.zip.sha256sum + - uses: actions/upload-artifact@v1 + with: + name: wifi_bonding + path: ./ diff --git a/module.prop b/module.prop index 4e757f4..9f26ce1 100644 --- a/module.prop +++ b/module.prop @@ -4,3 +4,4 @@ version=1.14 versionCode=15 author=simonsmh description=Doubles your wi-fi bandwith by modifying WCNSS_qcom_cfg.ini. +updateJson=https://cdn.jsdelivr.net/gh/Magisk-Modules-Repo/wifi-bonding/version.json diff --git a/version.json b/version.json new file mode 100644 index 0000000..a8034d2 --- /dev/null +++ b/version.json @@ -0,0 +1,6 @@ +{ + "version": "1.14", + "versionCode": 15, + "zipUrl": "https://github.com/Magisk-Modules-Repo/wifi-bonding/releases/download/15/wifi_bonding.zip", + "changelog": "https://cdn.jsdelivr.net/gh/Magisk-Modules-Repo/wifi-bonding/README.md" +}