Skip to content

Commit

Permalink
Anontate releases (#4507)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/488551667048375/1207185787211286/f

### Description
Created a new fastlane to annotate the releases when we deploy to play store

### Steps to test this PR
code review
In addition one can replace the `m_new_release_android` by eg. `test` and execute the lane and see the pixel arrives normally
  • Loading branch information
aitorvs authored May 3, 2024
1 parent f7d55a3 commit ba893f7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,26 @@ platform :android do
)

cleanup_fastlane_release_notes()
annotate_release()

end

desc "Annotate release"
lane :annotate_release do
props = property_file_read(file: "app/version/version.properties")
version = props["VERSION"]

http_status = sh("curl -s -o /dev/null -w '%{http_code}' https://improving.duckduckgo.com/t/m_new_release_android?appVersion=#{version}", log: false).to_i

if http_status >= 200 && http_status < 300
# Successful response
puts "Release annotation successful with status code #{http_status}"
else
# Unsuccessful response
puts "Release annotation failed with status code #{http_status}"
end
end

desc "Upload APK to ad-hoc internal app sharing"
private_lane :deploy_adhoc do

Expand Down
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

Upload APK to Play Store, in pre-production staging track

### android annotate_release

```sh
[bundle exec] fastlane android annotate_release
```

Use to annotate the release in our monitor metrics

### android deploy_dogfood

```sh
Expand Down

0 comments on commit ba893f7

Please sign in to comment.