Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit ba49e84

Browse files
authored
Merge pull request #86 from Automattic/iangmaia/add-initial-release-lane
[Tooling] Add initial release lane setup
2 parents 56d578c + 9a5011e commit ba49e84

File tree

8 files changed

+319
-26
lines changed

8 files changed

+319
-26
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash -eu
2+
3+
echo "--- :rubygems: Setting up Gems"
4+
install_gems
5+
6+
echo "--- :closed_lock_with_key: Installing Secrets"
7+
bundle exec fastlane run configure_apply
8+
9+
echo "--- :hammer_and_wrench: Building and Uploading to Play Store"
10+
bundle exec fastlane build_and_upload_to_play_store track:'internal' release_status:'completed'

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ steps:
5050
./gradlew :app:lintDebug
5151
5252
upload_sarif_to_github 'app/build/reports/lint-results-debug.sarif'
53-
plugins: [ $CI_TOOLKIT ]
53+
plugins: [$CI_TOOLKIT]
5454
artifact_paths:
5555
- "**/build/reports/lint-results*.*"
5656
notify:
@@ -62,7 +62,7 @@ steps:
6262
./gradlew detekt
6363
6464
upload_sarif_to_github 'app/build/reports/detekt/detekt.sarif'
65-
plugins: [ $CI_TOOLKIT ]
65+
plugins: [$CI_TOOLKIT]
6666
artifact_paths:
6767
- "**/build/reports/detekt/*.*"
6868
notify:

.buildkite/release-builds.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2+
---
3+
4+
# 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
5+
6+
agents:
7+
queue: "android"
8+
9+
steps:
10+
- label: Gradle Wrapper Validation
11+
command: validate_gradle_wrapper
12+
priority: 1
13+
agents:
14+
queue: linter
15+
16+
# Wait for Gradle Wrapper to be validated
17+
- wait
18+
19+
- label: 🕵️‍♂️ Lint
20+
command: ./gradlew lintRelease
21+
key: lint
22+
plugins: [$CI_TOOLKIT]
23+
artifact_paths:
24+
- "**/build/reports/lint-results*.*"
25+
26+
- label: ":hammer_and_wrench: :android: Build Release and Upload to Play Store"
27+
command: .buildkite/commands/release-build.sh
28+
priority: 1
29+
depends_on: lint
30+
plugins: [$CI_TOOLKIT]
31+
artifact_paths:
32+
- "app/build/outputs/bundle/release/*.aab"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2+
---
3+
4+
steps:
5+
- label: ":rocket: New Alpha Release"
6+
key: new-alpha-release
7+
plugins: [$CI_TOOLKIT]
8+
command: |
9+
echo "--- :robot_face: Use bot for Git operations"
10+
source use-bot-for-git
11+
12+
echo "--- :ruby: Setup Ruby Tools"
13+
install_gems
14+
15+
echo "--- :rocket: Create New Alpha"
16+
bundle exec fastlane new_alpha_release skip_confirm:true
17+
agents:
18+
queue: tumblr-metal

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
44

55
gem 'danger-dangermattic', '~> 1.2'
66
gem 'fastlane', '~> 2.228'
7-
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.3'
7+
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.4'

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ GEM
167167
xcodeproj (>= 1.13.0, < 2.0.0)
168168
xcpretty (~> 0.4.1)
169169
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
170-
fastlane-plugin-wpmreleasetoolkit (13.3.1)
170+
fastlane-plugin-wpmreleasetoolkit (13.4.0)
171171
activesupport (>= 6.1.7.1)
172172
buildkit (~> 1.5)
173173
chroma (= 0.2.0)
@@ -354,7 +354,7 @@ PLATFORMS
354354
DEPENDENCIES
355355
danger-dangermattic (~> 1.2)
356356
fastlane (~> 2.228)
357-
fastlane-plugin-wpmreleasetoolkit (~> 13.3)
357+
fastlane-plugin-wpmreleasetoolkit (~> 13.4)
358358

359359
BUNDLED WITH
360360
2.6.3

0 commit comments

Comments
 (0)