diff --git a/.github/workflows/AndroidBuild.yml b/.github/workflows/AndroidBuild.yml new file mode 100644 index 000000000..a961d8ef0 --- /dev/null +++ b/.github/workflows/AndroidBuild.yml @@ -0,0 +1,40 @@ +name: AndroidBuild + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4.1.0 + + - name: Set up JDK 11 + uses: actions/setup-java@v3.13.0 + with: + distribution: 'adopt' + java-version: '17' + + - name: Grant execute permission for gradlew + run: | + chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.3 + with: + name: dsTemplate.apk + path: app/build/outputs/apk/debug/app-debug.apk + + - name: Decode Keystore + run: echo "${{ secrets.KEYSTORE }}" | base64 --decode > /tmp/keystore.jks + + - name: Build Release + run: ./gradlew assembleDebug \ No newline at end of file