diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..200bd7c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +on: workflow_dispatch + +jobs: + run: + runs-on: ubuntu-latest + steps: + - run: | + git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" . + ./build-module.sh + - id: get_output_name + run: echo ::set-output name=OUTPUT::$(cat build-module.sh | sed -n 's/.*OUTPUT="\(.*\)".*/\1/p') + shell: bash + - name: Upload release + uses: svenstaro/upload-release-action@2.3.0 + 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 }} + overwrite: true diff --git a/.gitignore b/.gitignore index f6d1a34..7126612 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ *.keystore !base-v17.24.34.apk +.v* \ No newline at end of file