From eed1ab792d676a090be4be4f764d51762483426a Mon Sep 17 00:00:00 2001 From: Hiddify Date: Fri, 15 Sep 2023 11:37:35 +0200 Subject: [PATCH] better manage the market release --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4640622c..8f976aec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -201,21 +201,8 @@ jobs: path: ./out retention-days: 2 - - name: Create service_account.json - if: matrix.platform == 'android-aab' && github.ref_type=='tag' - run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json - - name: Deploy to Internal Testers - if: matrix.platform == 'android-aab' && github.ref_type=='tag' - uses: r0adkll/upload-google-play@v1 - with: - serviceAccountJson: service_account.json - packageName: app.hiddify.com - releaseName: ${{ github.ref }} - releaseFiles: ./build/app/outputs/bundle/release/app-release.aab - track: internal - - upload-prerelease: + upload-draft: permissions: write-all if: ${{ github.ref_type=='branch' }} needs: [build] @@ -273,3 +260,16 @@ jobs: prerelease: ${{ contains(github.ref_name,'dev') }} tag_name: ${{ github.ref_name }} files: ./out/* + + - name: Create service_account.json + if: matrix.platform == 'android-aab' && github.ref_type=='tag' + run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json + + - name: Deploy to Internal Testers + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJson: service_account.json + packageName: app.hiddify.com + releaseName: ${{ github.ref }} + releaseFiles: ./out/hiddify-android-market.aab + track: internal \ No newline at end of file