-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa46ce7
commit e588243
Showing
2 changed files
with
58 additions
and
3 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 |
---|---|---|
|
@@ -5,8 +5,7 @@ on: | |
push: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
android-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
|
@@ -50,3 +49,59 @@ jobs: | |
${{ runner.os }}-gradle-caches- | ||
- name: Make Gradlew Executable | ||
run: cd android && chmod +x ./gradlew | ||
|
||
# Building and signing App | ||
- name: Build Android App Bundle | ||
run: cd android && ./gradlew bundleRelease | ||
|
||
- name: Sign ABB | ||
uses: r0adkll/sign-android-release@v1 | ||
# ID used to access action output | ||
id: sign_app | ||
with: | ||
releaseDirectory: android/app/build/outputs/bundle/release | ||
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | ||
alias: ${{ secrets.ALIAS }} | ||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Signed app bundle | ||
path: ${{steps.sign_app.outputs.signedReleaseFile}} | ||
retention-days: 4 | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.run_number }} | ||
release_name: Release V${{ github.run_number }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release AAB | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{steps.sign_app.outputs.signedReleaseFile}} | ||
asset_name: app-release-v${{ github.run_number }}.zip | ||
asset_content_type: application/zip | ||
|
||
# Distribute App to google play | ||
- name: Publish to Play Store internal test track | ||
uses: r0adkll/[email protected] | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.ANDROID_SERVICE_ACCOUNT_JSON }} | ||
packageName: com.artery | ||
releaseFiles: android/app/build/outputs/bundle/release/app-release.aab | ||
track: internal | ||
inAppUpdatePriority: 3 | ||
|
||
|
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