From 720ebe784629bcae2996db4aecf47501625578f6 Mon Sep 17 00:00:00 2001 From: "muthuraj.mr" Date: Sat, 22 Oct 2022 02:30:51 +0530 Subject: [PATCH] #build yaml file added to generate release build on commit --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..38af5d5 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + # 1 + - name: Checkout code + uses: actions/checkout@v2 + # 2 + - name: Generate Release APK + run: ./gradlew assembleRelease + # 3 + - name: Sign APK + uses: r0adkll/sign-android-release@v1 + # ID used to access action output + id: sign_app + with: + releaseDirectory: app/build/outputs/apk/release + signingKeyBase64: ${{ secrets.SIGNING_KEY }} + alias: ${{ secrets.ALIAS }} + keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_PASSWORD }} + # 4 + - uses: actions/upload-artifact@master + with: + name: release.apk + path: ${{steps.sign_app.outputs.signedReleaseFile}} \ No newline at end of file