Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
110a9d7
Add methods to manage versioning
iangmaia Jul 26, 2025
053a451
Add lanes for building and uploading app releases
iangmaia Jul 26, 2025
dd2069b
Add pipelines and automation to trigger a new alpha and to build rele…
iangmaia Jul 28, 2025
69666a4
Use require_env_vars! to validate required ENV vars when building a p…
iangmaia Jul 29, 2025
0b38724
Improve release lanes to better run locally
iangmaia Jul 29, 2025
5880bdd
Improve lane defaults for releasing
iangmaia Jul 29, 2025
413c03c
Move helper functions to end of file after platform
iangmaia Jul 29, 2025
e39e4c9
[skip ci] Bump build code
iangmaia Jul 29, 2025
ebef7ba
Update code to only specify a rollout when the track isn't draft
iangmaia Jul 29, 2025
5fbbf08
[skip ci] Bump build code
iangmaia Jul 29, 2025
0282ff7
[skip ci] Bump build code
Jul 30, 2025
36516ed
Apply suggestions from code review
iangmaia Jul 31, 2025
f57f31c
Use new name for the Play Store Upload Key in the environment vars
iangmaia Jul 31, 2025
d5b7e5d
Add more detailed Yard docs
iangmaia Aug 1, 2025
584f38f
Use `DerivedBuildCodeFormatter` for build code calculations
iangmaia Aug 1, 2025
ded34f8
[skip ci] Bump build code
iangmaia Aug 1, 2025
fb5bbcf
Upload to internal track with full rollout
iangmaia Aug 5, 2025
66f8616
Update release-toolkit
iangmaia Aug 5, 2025
da88418
Update build code formatter init
iangmaia Aug 5, 2025
c3090ac
Use version 0.21, given the build code `100020001` (0.20 in the new v…
iangmaia Aug 5, 2025
ca3fc2e
[skip ci] Bump build code
iangmaia Aug 6, 2025
9a5011e
Improve comment
iangmaia Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .buildkite/commands/release-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -eu

echo "--- :rubygems: Setting up Gems"
install_gems

echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply

echo "--- :hammer_and_wrench: Building and Uploading to Play Store"
bundle exec fastlane build_and_upload_to_play_store track:'internal' release_status:'completed'
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ steps:
./gradlew :app:lintDebug

upload_sarif_to_github 'app/build/reports/lint-results-debug.sarif'
plugins: [ $CI_TOOLKIT ]
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/lint-results*.*"
notify:
Expand All @@ -62,7 +62,7 @@ steps:
./gradlew detekt

upload_sarif_to_github 'app/build/reports/detekt/detekt.sarif'
plugins: [ $CI_TOOLKIT ]
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/detekt/*.*"
notify:
Expand Down
32 changes: 32 additions & 0 deletions .buildkite/release-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

# This pipeline is meant to be run via the action `buildkite_add_trigger_step`, which calls the buildkite-agent to add it as a trigger step

agents:
queue: "android"

steps:
- label: Gradle Wrapper Validation
command: validate_gradle_wrapper
priority: 1
agents:
queue: linter

# Wait for Gradle Wrapper to be validated
- wait

- label: 🕵️‍♂️ Lint
command: ./gradlew lintRelease
key: lint
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/lint-results*.*"

- label: ":hammer_and_wrench: :android: Build Release and Upload to Play Store"
command: .buildkite/commands/release-build.sh
priority: 1
depends_on: lint
plugins: [$CI_TOOLKIT]
artifact_paths:
- "app/build/outputs/bundle/release/*.aab"
18 changes: 18 additions & 0 deletions .buildkite/release-pipelines/new-alpha-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

steps:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This pipeline is to start the alpha release process completely from CI (eventually from ReleasesV2).

- label: ":rocket: New Alpha Release"
key: new-alpha-release
plugins: [$CI_TOOLKIT]
command: |
echo "--- :robot_face: Use bot for Git operations"
source use-bot-for-git

echo "--- :ruby: Setup Ruby Tools"
install_gems

echo "--- :rocket: Create New Alpha"
bundle exec fastlane new_alpha_release skip_confirm:true
agents:
queue: tumblr-metal
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ source 'https://rubygems.org'

gem 'danger-dangermattic', '~> 1.2'
gem 'fastlane', '~> 2.228'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.3'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.4'
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-wpmreleasetoolkit (13.3.1)
fastlane-plugin-wpmreleasetoolkit (13.4.0)
activesupport (>= 6.1.7.1)
buildkit (~> 1.5)
chroma (= 0.2.0)
Expand Down Expand Up @@ -354,7 +354,7 @@ PLATFORMS
DEPENDENCIES
danger-dangermattic (~> 1.2)
fastlane (~> 2.228)
fastlane-plugin-wpmreleasetoolkit (~> 13.3)
fastlane-plugin-wpmreleasetoolkit (~> 13.4)

BUNDLED WITH
2.6.3
Loading