-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feature] Setup sample app deployment for testing
- Loading branch information
1 parent
f2d25af
commit fac7db3
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ on: | |
|
||
jobs: | ||
build: | ||
if: ${{ ! startsWith(github.actor, 'dependabot') }} | ||
environment: Development | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -22,6 +24,36 @@ jobs: | |
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/[email protected] | ||
|
||
|
||
- name: Decrypt the keystore for signing | ||
run: | | ||
echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc | ||
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks | ||
- name: Build components | ||
run: ./gradlew assembleRelease | ||
|
||
- name: Build release sample APK | ||
run: ./gradlew sample:assembleRelease | ||
|
||
- name: Check output | ||
run: ls ./sample/build/outputs/apk/release/ | ||
|
||
- name: Upload release arm64-v8a APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-arm64-v8a-apk | ||
path: ./sample/build/outputs/apk/release/app-arm64-v8a-release.apk | ||
|
||
- name: Upload release armeabi-v7a APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-armeabi-v7a-apk | ||
path: ./sample/build/outputs/apk/release/app-armeabi-v7a-release.apk | ||
|
||
- name: Upload release universal APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-universal-apk | ||
path: ./sample/build/outputs/apk/release/app-universal-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters