Skip to content

Commit

Permalink
Tweaks android build
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Jan 13, 2024
1 parent 4567edd commit 45671d2
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/deploy-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Android Build CI/CD
# Only code merged to main with new release notes can be released as a build.
on:
push:
branches: [ main ]
paths:
- 'native_gg/android/WhatsNew/**'
# branches: [ main ]
# paths:
# - 'native_gg/android/WhatsNew/**'

jobs:
android-build:
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 8.14.1
- uses: actions/setup-java@v4
- uses: actions/setup-java@v4.0.0
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
Expand All @@ -34,9 +34,6 @@ jobs:
gradlePath: native_gg/android/app/build.gradle
versionCode: ${{github.run_number}}
versionName: '1.0.0'

- name: Install Dependencies
run: pnpm install --frozen-lockfile

# - name: Run Unit Test
# run: ./gradlew test
Expand Down Expand Up @@ -75,21 +72,21 @@ jobs:
keyPassword: ${{ secrets.KEY_PASSWORD }}

- name: Upload Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.1.0
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}
retention-days: 4

# Distribute App to google play
- name: Publish to Play Store internal test track
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.guardianghost
releaseFiles: native_gg/android/app/build/outputs/bundle/release/app-release.aab
whatsNewDirectory: native_gg/android/WhatsNew
track: internal
# TODO: Change to completed or remove the status line once alpha or beta testing tracks are ready.
status: draft
inAppUpdatePriority: 3
# - name: Publish to Play Store internal test track
# uses: r0adkll/[email protected]
# with:
# serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
# packageName: com.guardianghost
# releaseFiles: native_gg/android/app/build/outputs/bundle/release/app-release.aab
# whatsNewDirectory: native_gg/android/WhatsNew
# track: internal
# # TODO: Change to completed or remove the status line once alpha or beta testing tracks are ready.
# status: draft
# inAppUpdatePriority: 3

0 comments on commit 45671d2

Please sign in to comment.