Skip to content

feat(ci): weekly alpha releases - #22155

Merged
mikehardy merged 2 commits into
ankidroid:mainfrom
david-allison:20166
Sep 30, 2026
Merged

mikehardy merged 2 commits into
ankidroid:mainfrom
david-allison:20166

Conversation

@david-allison

Copy link
Copy Markdown
Member

Note

Assisted-by: GPT-6

Purpose

Automatically publish on -4:30 UTC every Monday.

Skipped if:

  • A publish occurred fewer than 7 UTC calendar days ago.
  • The app is not in alpha.
  • There were no commits since the last release.

Fixes

Approach

  • add a gradle task to generate metadata to a .json file
  • In CI: run everyMonday at 4:30, check the generated files and

How Has This Been Tested?

⚠️ CI - please provide suggestions
A small test was added to be sure the test wouldn't be broken if we renamed AnkiDroid

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Add `:AnkiDroid:writeReleaseMetadata`:

A file is used as Gradle can also write to stdout/stderr:

`outputs/release-metadata.json`

```json
{
    "versionName": "2.26.0alpha1",
    "versionCode": 22600101,
    "releaseType": "alpha"
}
```

Part of 20166

Assisted-by: GPT-6
Scheduled for every Monday at 04:30 UTC

Skipped if:
* A publish occurred fewer than 7 UTC calendar days ago.
* The app is not in alpha.
* There were no commits since the last release.

This uses the release metadata published by gradle (`build/outputs/release-metadata.json`)
 and `.github/check_alpha_release.js` to keep the yaml lean.

Fixes 20166

Assisted-by: GPT-6

@mikehardy mikehardy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM — after adversarial review + local CI-parity (lint/unit/emulator on API36_GAPI_PS16K) on a rebase onto current main.

@mikehardy mikehardy added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Review labels Sep 30, 2026
@mikehardy
mikehardy added this pull request to the merge queue Sep 30, 2026
Merged via the queue into ankidroid:main with commit 02aed1d Sep 30, 2026
24 of 25 checks passed
@github-actions github-actions Bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Sep 30, 2026
@github-actions github-actions Bot added this to the 2.26 release milestone Sep 30, 2026
@david-allison
david-allison deleted the 20166 branch September 30, 2026 13:26
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.

Increase release cadence of alpha builds

2 participants