summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-07-02 13:49:32 +0200
committerGitHub <noreply@github.com>2020-07-02 13:49:32 +0200
commitca9c951a536e9ccd2bf3e8f0e2e0a48992d0d655 (patch)
treebcf32f9bf6178051632baed95d5c70d8355f8e29 /.github/workflows
parentc702d4aa9ea09ae27e613d85440a207b37995e86 (diff)
Fill OTP fields with SMS codes (#900)
* Fill OTP fields with SMS codes * Allow SMS OTP fill also for web origins * Introduce free and nonFree build variants * Fix up workflow * Improve layout and feature detection * Workflow changes * Add Changelog entry * github: update release workflow for nonFree/Free split Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Switch to lifecycleScope * github: make snapshot deploy free variant Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy_snapshot.yml2
-rw-r--r--.github/workflows/pull_request.yml2
-rw-r--r--.github/workflows/release.yml62
3 files changed, 44 insertions, 22 deletions
diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml
index e34e41bf..5b3b1cc4 100644
--- a/.github/workflows/deploy_snapshot.yml
+++ b/.github/workflows/deploy_snapshot.yml
@@ -51,7 +51,7 @@ jobs:
run: ./gradlew dependencies
- name: Build release app
- run: ./gradlew :app:assembleRelease
+ run: ./gradlew :app:assembleFreeRelease
env:
SNAPSHOT: "true"
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index ccd77e8b..d4326bb0 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
api-level: [23, 29]
- variant: [Debug, Release]
+ variant: [freeDebug, freeRelease, nonFreeRelease]
steps:
- name: Check if relevant files have changed
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6b652347..5f03c588 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -50,20 +50,26 @@ jobs:
- name: Download gradle dependencies
run: ./gradlew dependencies
- - name: Build release APK and bundle
- run: ./gradlew :app:assembleRelease :app:bundleRelease
+ - name: Build release binaries
+ run: ./gradlew :app:assembleFreeRelease :app:assembleNonFreeRelease :app:bundleNonFreeRelease
- - name: Upload release APK
+ - name: Upload non-free release APK
uses: actions/upload-artifact@master
with:
- name: APS Release APK
- path: app/build/outputs/apk/release/app-release.apk
+ name: APS Non-Free Release APK
+ path: app/build/outputs/apk/nonFree/release/app-release.apk
- - name: Upload release Bundle
+ - name: Upload non-free release Bundle
uses: actions/upload-artifact@master
with:
- name: APS Release Bundle
- path: app/build/outputs/bundle/release/app-release.aab
+ name: APS Non-Free Release Bundle
+ path: app/build/outputs/bundle/nonFree/release/app-release.aab
+
+ - name: Upload free release APK
+ uses: actions/upload-artifact@master
+ with:
+ name: APS Free Release APK
+ path: app/build/outputs/apk/free/release/app-release.apk
- name: Clean secrets
if: always()
@@ -77,17 +83,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- - name: Get APK
+ - name: Get Non-Free Release APK
uses: actions/download-artifact@v1
with:
- name: APS Release APK
- path: artifacts
+ name: APS Non-Free Release APK
+ path: artifacts/nonFree
- - name: Get Bundle
+ - name: Get Non-Free Bundle
uses: actions/download-artifact@v1
with:
- name: APS Release Bundle
- path: artifacts
+ name: APS Non-Free Release Bundle
+ path: artifacts/nonFree
+
+ - name: Get Free Release APK
+ uses: actions/download-artifact@v1
+ with:
+ name: APS Free Release APK
+ path: artifacts/free
- name: Get Changelog Entry
id: changelog_reader
@@ -112,22 +124,32 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- - name: Upload Release Apk
+ - name: Upload Non-Free Release Apk
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: ./artifacts/app-release.apk
- asset_name: APS_${{ steps.get_version.outputs.VERSION }}.apk
+ asset_path: ./artifacts/nonFree/app-release.apk
+ asset_name: APS-nonFree_${{ steps.get_version.outputs.VERSION }}.apk
asset_content_type: application/vnd.android.package-archive
- - name: Upload Release Bundle
+ - name: Upload Non-Free Release Bundle
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: ./artifacts/app-release.aab
- asset_name: APS_${{ steps.get_version.outputs.VERSION }}.aab
+ asset_path: ./artifacts/nonFree/app-release.aab
+ asset_name: APS-nonFree_${{ steps.get_version.outputs.VERSION }}.aab
asset_content_type: application/octet-stream
+
+ - name: Upload Free Release Apk
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./artifacts/free/app-release.apk
+ asset_name: APS-free_${{ steps.get_version.outputs.VERSION }}.apk
+ asset_content_type: application/vnd.android.package-archive