From 0d5ec73e4b6d6569c73c06e612b3acc38c1a5d50 Mon Sep 17 00:00:00 2001 From: j-hc Date: Sat, 25 Jun 2022 18:27:12 +0300 Subject: [PATCH] ci Former-commit-id: d32c7bbed178abd4513c06b8556f89f4455dfb3c --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ .gitignore | 1 + build-module.sh | 5 ----- 3 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..34c542c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +on: workflow_dispatch + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-java@v3 + with: + distribution: "zulu" + java-version: "17" + - 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 diff --git a/build-module.sh b/build-module.sh index 812e5a2..6f03c38 100755 --- a/build-module.sh +++ b/build-module.sh @@ -1,11 +1,6 @@ #!/bin/bash echo "All necessary files (revanced cli, patches and integrations) will be downloaded, Youtube apk will be patched and zipped into a Magisk module" -read -p "Continue? (y/n): " confirm - -if [[ ! $confirm == [yY] ]]; then - exit 0 -fi # CURRENT VERSION YTBASE="base-v17.24.34.apk"