Skip to content

Commit

Permalink
ci(android): build and deploy staging, not prod (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
boringcactus authored Dec 2, 2024
1 parent 8d5046f commit e62681b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ jobs:
MAPBOX_SECRET_TOKEN: ${{ secrets.MAPBOX_SECRET_TOKEN }}
MAPBOX_PUBLIC_TOKEN: ${{ secrets.MAPBOX_PUBLIC_TOKEN }}
run: |
bundle exec fastlane android build flavor:Prod
bundle exec fastlane android build flavor:Staging
- uses: actions/upload-artifact@v4
with:
name: android-apk
path: androidApp/build/outputs/apk/prod/release/androidApp-prod-release.apk
path: androidApp/build/outputs/apk/staging/release/androidApp-staging-release.apk
- uses: actions/upload-artifact@v4
with:
name: android-aab
path: androidApp/build/outputs/bundle/prodRelease/androidApp-prod-release.aab
path: androidApp/build/outputs/bundle/stagingRelease/androidApp-staging-release.aab
deploy-android:
name: Upload to Google Play
if: github.event_name != 'pull_request'
Expand All @@ -177,12 +177,12 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: android-aab
path: androidApp/build/outputs/bundle/prodRelease
path: androidApp/build/outputs/bundle/stagingRelease
- uses: ./.github/actions/setup
with:
gcp-provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
gcp-service-account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
ruby: true
- name: Upload to Google Play
run: |
bundle exec fastlane android internal flavor:Prod
bundle exec fastlane android internal flavor:Staging

0 comments on commit e62681b

Please sign in to comment.