diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50ab4ea..696a72e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,13 +12,16 @@ jobs: git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" . ./build-module.sh - 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 - name: Upload release - uses: svenstaro/upload-release-action@2.3.0 + uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.get_output_name.outputs.OUTPUT }} asset_name: ${{ steps.get_output_name.outputs.OUTPUT }} release_name: ${{ steps.get_output_name.outputs.OUTPUT }} + tag: ${{ steps.get_output_name.outputs.VERSION }} overwrite: true diff --git a/README.md b/README.md index 0f8b13f..78ed5ee 100644 --- a/README.md +++ b/README.md @@ -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 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