diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml new file mode 100644 index 0000000..4b5554b --- /dev/null +++ b/.github/workflows/build-apk.yml @@ -0,0 +1,18 @@ +name: Build APK + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Build + uses: sparkfabrik/android-build-action@v1.2.0 + with: + project-path: . + output-path: smsgateway-${GITHUB_REF_NAME}.apk diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json new file mode 100644 index 0000000..031b0a7 --- /dev/null +++ b/app/release/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "me.capcom.smsgateway", + "variantName": "release", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "1.0.0", + "outputFile": "app-release.apk" + } + ], + "elementType": "File" +} \ No newline at end of file