Skip to content

Commit

Permalink
Updated GHA workflow for debug signing
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiDixit09 committed Apr 26, 2024
1 parent 807920f commit 286f42a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/appium-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,29 @@ jobs:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
# to reduce complexity, testbed app uses sdk as a project reference
- name: Decode Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: 'Branch-SDK-Automation-TestBed/automationSigningKeys.jks'
encodedString: ${{ secrets.KEYSTORE }}
- name: Build testbed app
run: |
cd sdk
./gradlew Branch-SDK-Automation-TestBed:assembleDebug
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Build Master testbed app for Reinstallation tests
if: ${{ !( github.ref == 'refs/heads/master')}}
run: |
cd previousVersionSDK
./gradlew Branch-SDK-Automation-TestBed:assembleDebug
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Upload APK to BrowserStack
run: |
response=$(curl -X POST https://api-cloud.browserstack.com/app-automate/upload -u "${{ secrets.BROWSER_STACK_USER }}:${{ secrets.BROWSER_STACK_KEY }}" -F "file=@sdk/Branch-SDK-Automation-TestBed/build/outputs/apk/debug/Branch-SDK-Automation-TestBed-debug.apk")
Expand Down
8 changes: 8 additions & 0 deletions Branch-SDK-Automation-TestBed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ plugins {
android {
compileSdk 33

signingConfigs {
debug {
keyAlias System.getenv("SIGNING_KEY_ALIAS")
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
storeFile= file("Branch-SDK-Automation-TestBed/automationSigningKeys.jks")
storePassword System.getenv("SIGNING_STORE_PASSWORD")
}
}
defaultConfig {
applicationId "io.branch.branchandroiddemo"
minSdk 21
Expand Down

0 comments on commit 286f42a

Please sign in to comment.