diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb0bc787..c5861205 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -174,6 +174,10 @@ jobs: mv ./build/app/outputs/flutter-apk/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk" mv ./build/app/outputs/flutter-apk/app-release.apk out/hiddify-android-universal.apk || echo "no universal apk" + + + + - name: Copy to out unix if: matrix.platform == 'linux' || matrix.platform == 'macos' || matrix.platform == 'ios' run: | @@ -210,3 +214,17 @@ jobs: tag_name: "draft" prerelease: true overwrite: true + + - name: Create service_account.json + if: matrix.platform == 'android' + run: echo '${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}' > service_account.json + + - name: Deploy to Internal Testers + if: matrix.platform == 'android' + 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 \ No newline at end of file diff --git a/Makefile b/Makefile index 946c5e94..c2024b4a 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,8 @@ gen: translate: dart run slang -android-release: +android-release: android-aab-release android-apk-release +android-apk-release: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi android-aab-release: