From b3f789a0b4b29d5c9195a29f093768ba11bb4b20 Mon Sep 17 00:00:00 2001 From: X1nto Date: Wed, 20 May 2020 14:30:21 +0400 Subject: [PATCH] attempt to add auto update --- .github/workflows/android.yml | 17 +++- app/app.iml | 18 +++-- app/build.gradle | 2 +- .../ui/fragments/UpdateCheckFragment.kt | 45 +++++++++++ .../main/res/layout/fragment_update_check.xml | 80 +++++++++++++------ 5 files changed, 129 insertions(+), 33 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0ae00ced..634a7b8b 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -4,10 +4,14 @@ on: push: branches: - master + tags: + - '*' pull_request: branches: - master - + tags: + - '*' + jobs: build: runs-on: ubuntu-latest @@ -36,12 +40,21 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} - - name: Upload file to github + - name: Upload to GitHub uses: actions/upload-artifact@v2 with: name: 'Vanced-Manager' path: ${{ steps.sign-app.outputs.signedReleaseFile }} + - name: Upload to GitHub releases + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ steps.sign-app.outputs.signedReleaseFile }} + asset_name: release + tag: ${{ github.ref }} + overwrite: true + - name: Upload to Discord uses: sinshutu/upload-to-discord@master env: diff --git a/app/app.iml b/app/app.iml index f9c2d44c..7489e090 100644 --- a/app/app.iml +++ b/app/app.iml @@ -31,7 +31,7 @@