Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: Upload AAB to Play Store and Firebase #5176

Merged
merged 44 commits into from
Nov 5, 2024

Conversation

malmstein
Copy link
Contributor

@malmstein malmstein commented Oct 22, 2024

Task/Issue URL: https://app.asana.com/0/42792087274227/1208606985938250/f

Description

This PR enables nightly releases from GHA

Steps to test this PR

Run the workflow

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @malmstein and the rest of your teammates on Graphite Graphite

@malmstein malmstein force-pushed the feature/david/10-22-gha_upload_aab_to_play_store branch 4 times, most recently from 0404cae to 6b23eb4 Compare October 28, 2024 13:04
@malmstein malmstein force-pushed the feature/david/10-22-gha_upload_aab_to_play_store branch 2 times, most recently from 01aa980 to 34abbf4 Compare October 31, 2024 09:51
@malmstein malmstein marked this pull request as ready for review October 31, 2024 21:21
fastlane/Fastfile Show resolved Hide resolved
.github/workflows/release_upload_bundle.yml Outdated Show resolved Hide resolved
.github/workflows/release_upload_bundle.yml Outdated Show resolved Hide resolved
.github/workflows/release_upload_bundle.yml Outdated Show resolved Hide resolved
versioning.gradle Show resolved Hide resolved
@malmstein malmstein force-pushed the feature/david/10-22-gha_upload_aab_to_play_store branch from 857d523 to 6b90639 Compare November 4, 2024 09:10
@malmstein malmstein changed the title GHA: Upload AAB to Play Store GHA: Upload AAB to Play Store and Firebase Nov 4, 2024
Copy link
Contributor

@lmac012 lmac012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff 👍 Just a few questions / comments.

git tag -a ${{ steps.generate_version_name.outputs.version }} -m "Create tag ${{ steps.generate_version_name.outputs.version }} for nightly release."
git push origin ${{ steps.generate_version_name.outputs.version }}

- name: Upload app bundle as artifact
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Name of this step is slightly misleading, we want the apk uploaded as an artifact (not the app bundle).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

with:
secret: ${{ secrets.UPLOAD_RELEASE_PROPERTIES }}
fileName: ddg_android_build_upload.properties
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we're still using this particular path to maintain compatibility of our gradle scripts with the existing Jenkins setup?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We won’t need this once Jenkins is gone. That being said, devs already have this file structure locally so changing it would involve more work like Onboarding, etc. I’ll leave this change to the very last of the migration,

.github/workflows/release_upload_bundle.yml Outdated Show resolved Hide resolved
jobs:
create-tag:
name: Generate and upload nightly bundle to Play Store Internal track
runs-on: macos-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason we need a macOS runner for this workflow? I understand it’s not intended to be executed often, but it still feels wasteful if there are no blockers to using Ubuntu, which is significantly cheaper, IIRC.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, there’s no need. Moved it all to ubuntu-latest

workflow_dispatch:

env:
ASANA_PAT: ${{ secrets.GH_ASANA_SECRET }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this being used anywhere in this workflow. Are you planning to generate an asana task on workflow failure?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I missed that step. Adding it now.

@malmstein malmstein force-pushed the feature/david/10-22-gha_upload_aab_to_play_store branch from 6b90639 to a1f777e Compare November 5, 2024 09:35
@malmstein
Copy link
Contributor Author

Thanks for the review @lmac012 !

@malmstein malmstein merged commit 30f3827 into develop Nov 5, 2024
8 checks passed
@malmstein malmstein deleted the feature/david/10-22-gha_upload_aab_to_play_store branch November 5, 2024 10:57
aitorvs pushed a commit that referenced this pull request Nov 6, 2024
Task/Issue URL:
https://app.asana.com/0/42792087274227/1208606985938250/f

### Description
This PR enables nightly releases from GHA

### Steps to test this PR
Run the workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants