Skip to content

Commit

Permalink
Give it a go
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Jan 3, 2024
1 parent fa46ce7 commit e588243
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
59 changes: 57 additions & 2 deletions .github/workflows/deploy-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
push:

jobs:
build:
name: build
android-build:
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -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


2 changes: 1 addition & 1 deletion native_gg/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
// signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
Expand Down

0 comments on commit e588243

Please sign in to comment.