Skip to content

Commit

Permalink
Secrets: Added google-services.json and secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
donald-okara committed Nov 17, 2024
1 parent 22e3740 commit ade58aa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/generate-apk-aab-debug-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,33 @@ jobs:
run: ./gradlew assemble

# Create Bundle AAB Release
# Noted for main module build [main_project_module]:bundleRelease
- name: Build app bundle release (AAB) - ${{ env.main_project_module }} module
run: ./gradlew ${{ env.main_project_module }}:bundleRelease

# Upload Artifact Build
# Noted For Output [main_project_module]/build/outputs/apk/debug/
- name: Upload APK Debug - ${{ env.repository_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - APK(s) debug generated
path: ${{ env.main_project_module }}/build/outputs/apk/debug/

# Noted For Output [main_project_module]/build/outputs/apk/release/
- name: Upload APK Release - ${{ env.repository_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - APK(s) release generated
path: ${{ env.main_project_module }}/build/outputs/apk/release/

# Noted For Output [main_project_module]/build/outputs/bundle/release/
- name: Upload AAB (App Bundle) Release - ${{ env.repository_name }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.date_today }} - ${{ env.app_name }} - ${{ env.repository_name }} - App bundle(s) AAB release generated
path: ${{ env.main_project_module }}/build/outputs/bundle/release/

# Example of using API_KEY, GOOGLE_SERVICES_JSON, CLIENT_ID
- name: Set up Google Services and API Key
run: |
echo "${{ secrets.GOOGLE_SERVICES_JSON }}" > app/google-services.json
echo "API_KEY=${{ secrets.API_KEY }}" >> $GITHUB_ENV
echo "CLIENT_ID=${{ secrets.CLIENT_ID }}" >> $GITHUB_ENV
# You can now reference API_KEY, CLIENT_ID, and google-services.json locally in your app or build process

0 comments on commit ade58aa

Please sign in to comment.