Skip to content

Commit

Permalink
Test commit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud-elmorabea committed Oct 24, 2024
1 parent e1b27e8 commit 7d8ffc6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build-sample-app-for-sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ jobs:
runs-on: ubuntu-latest
name: Build sample app
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout code
uses: actions/checkout@v4

- name: Get latest SDK version
id: latest-sdk-version-step
run: |
latest_tag=$(git describe --tags --abbrev=0)
echo "LATEST_TAG=$latest_tag" >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/setup-android

# CLI to replace strings in files. The CLI recommends using `cargo install` which is slow. This Action is fast because it downloads pre-built binaries.
Expand All @@ -28,11 +31,13 @@ jobs:
ruby-version: '3.0'
bundler-cache: true # cache tools to make builds faster in future
- name: Setup local.properties file for sample app
env:
SDK_VERSION: ${{ steps.latest-sdk-version-step.outputs.LATEST_TAG }}
run: |
touch "samples/local.properties"
echo "cdpApiKey=${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY }}" >> "samples/local.properties"
echo "siteId=${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_SITE_ID }}" >> "samples/local.properties"
echo "sdkVersion=4.3.0" >> "samples/local.properties"
echo "sdkVersion=${{ SDK_VERSION }}" >> "samples/local.properties"
- name: Dump GitHub Action metadata because Fastlane uses it. Viewing it here helps debug JSON parsing code in Firebase.
run: cat $GITHUB_EVENT_PATH
Expand All @@ -42,9 +47,10 @@ jobs:
with:
lane: 'android build_sample_app_for_sdk_release'
subdirectory: "samples/java_layout"
options: '{ "sdk_version": "4.3.0" }'
options: '{ "sdk_version": "${{ SDK_VERSION }}" }'
env:
ANDROID_SIGNING_ALIAS: ${{ secrets.ANDROID_SIGNING_ALIAS }}
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
ANDROID_SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
SDK_VERSION: ${{ steps.latest-sdk-version-step.outputs.LATEST_TAG }}

0 comments on commit 7d8ffc6

Please sign in to comment.