update build.yml

Former-commit-id: 6fc3b01d483c4c6943ecc81a6e6aa9f7782de102
This commit is contained in:
j-hc 2022-06-30 19:54:04 +03:00
parent 49abcfa2cd
commit 4e654b430f
2 changed files with 6 additions and 3 deletions

View File

@ -12,13 +12,16 @@ jobs:
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" . git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" .
./build-module.sh ./build-module.sh
- id: get_output_name - id: get_output_name
run: echo ::set-output name=OUTPUT::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P') run: |
echo ::set-output name=OUTPUT::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P')
echo ::set-output name=VERSION::$(find . -maxdepth 1 -name "revanced-magisk-*.zip" -printf '%P' | sed -n 's/.*revanced-magisk-\(.*\)\.zip.*/\1/p')
shell: bash shell: bash
- name: Upload release - name: Upload release
uses: svenstaro/upload-release-action@2.3.0 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.get_output_name.outputs.OUTPUT }} file: ${{ steps.get_output_name.outputs.OUTPUT }}
asset_name: ${{ steps.get_output_name.outputs.OUTPUT }} asset_name: ${{ steps.get_output_name.outputs.OUTPUT }}
release_name: ${{ steps.get_output_name.outputs.OUTPUT }} release_name: ${{ steps.get_output_name.outputs.OUTPUT }}
tag: ${{ steps.get_output_name.outputs.VERSION }}
overwrite: true overwrite: true

View File

@ -9,7 +9,7 @@ You will need to install the stock YouTube app matching with the module version
You can go grab the split APKs from APKMirror (the bundle, not the apk or it will crash) You can go grab the split APKs from APKMirror (the bundle, not the apk or it will crash)
You can get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases/tag/main) if you do not want to build yourself. You can get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/releases) if you do not want to build yourself.
# Building the Magisk Module # Building the Magisk Module