Commit Graph
41 Commits
Author SHA1 Message Date
austinried af3741a549 ci: share the build and isolate the release credentials
Extract checkout, nix, signing and the Gradle run into a reusable build
workflow used by CI, the next build and the release build job. The build
job holds only the signing secrets; the publish job is the only one with
a write token and the Play credential. The Play service account is now
written to a 0600 file and passed via --json_key instead of on argv.
2026-10-08 18:52:44 +00:00
austinried fded9949af ci: stop exposing the checkout token and the keystore to later steps
Set persist-credentials: false so the contents:write token is not left
in .git/config where every later step (including the Gradle build) could
read it, and delete the decoded keystore once signing is done.
2026-10-08 18:52:44 +00:00
austinried eaab5368d0 play: push the full store listing and make the screenshots compliant
Drop the fastlane --skip_upload_* flags so the title, descriptions,
icon, feature graphic and screenshots upload alongside the AAB, and
re-encode the phone screenshots as 24-bit no-alpha PNGs, which is what
Play requires.
2026-10-08 18:52:43 +00:00
austinried 6b6a99e51c release: create the GitHub release with the gh CLI
Drop the third-party action in favour of GitHub's own gh CLI, which the
hosted runners already provide.
2026-10-08 18:52:43 +00:00
austinried 21d6c57bc2 ci: match the repo GitHub runner and action versions
Use ubuntu-26.04, actions/checkout v7 and actions/upload-artifact v7,
and cap the cached Nix store at 6G, matching .github/workflows/ci.yml.
2026-10-08 18:52:43 +00:00
austinried 650d8c49e6 release: upload to Google Play with fastlane
Replace the unpinned third-party upload-google-play action with fastlane
supply from a small nix release devshell, and pin the remaining
third-party GitHub release action to a commit SHA.
2026-10-08 18:52:43 +00:00
austinried c76a79c3ed ci: run the GitHub builds in the nix devshell
Drop setup-java, setup-android and the Gradle wrapper in favour of the
flake's pinned JDK, Gradle and Android SDK, restoring the Nix store with
cache-nix-action, so the release and next builds share the dev toolchain.
2026-10-08 18:52:43 +00:00
austinried 23911fceb5 ci: build signed debug and release next builds on every main push
Commit a public debug keystore and point the debug signing config at it,
and add a next build type (release-like, same key). Both carry the .next
application id, so next builds install alongside the release and update
each other without exposing the release key. A GitHub workflow builds
both APKs on every push to main and uploads them as artifacts.
2026-10-08 18:52:43 +00:00
austinried f506ac0410 release: publish signed builds on v* tags
Set applicationId to com.subtracks and add a GitHub Actions workflow
that, on a v* tag, builds and signs the release APK and AAB, creates
the GitHub release with the APK, and uploads the AAB to Google Play.
Release notes come from the matching metadata changelog.

Signing reads the keystore from the environment
(RELEASE_KEYSTORE, RELEASE_KEYSTORE_PASSWORD, RELEASE_KEY_ALIAS,
RELEASE_KEY_PASSWORD) and falls back to the debug key locally.
2026-10-08 18:52:43 +00:00
austinried eef94eff63 ci: move to actions/checkout v7 and actions/cache v6, pin ubuntu-26.04
The v4 pair targets Node 20, which GitHub now forces onto Node 24 (Node 20 is
deprecated). The Forgejo runner is v13, which runs Node 24, so both copies move
together. Pin the GitHub runner to ubuntu-26.04: ubuntu-latest migrates to it
over Oct 19 - Nov 19, 2026, and Nix supplies the toolchain either way.
2026-10-05 13:50:54 +00:00
austinried 126065e705 ci: run the workflow on GitHub pull requests
Add .github/workflows/ci.yml, a copy of the Forgejo CI workflow adapted to
GitHub-hosted runners (ubuntu-latest + cachix/install-nix-action), so pull
requests on the GitHub mirror get the lint, unit-test and integration checks.
The GitHub copy uses a 90 minute timeout so a cold run can finish and warm the
caches, caps the Nix cache so it cannot evict the Gradle/music caches from
GitHub's 10 GB per-repo budget, and pins the job token to contents:read.
2026-10-04 08:07:14 +00:00
austinried 05ac1768d3 start kotlin/jetpack compose rewrite
replace the flutter project with a gradle/compose android app:
- nix flake dev shell (jdk21, android sdk 35, build-tools 37, gradle)
- material3 app with a placeholder screen
- roborazzi/robolectric screenshot tests with one golden
- carry over the existing launcher/notification assets
2026-10-04 00:29:51 +00:00
austinried 4918c3be01 don't use build number in version 2023-04-28 16:04:59 +09:00
austinried 3468c7faf8 build on tags 2023-04-28 12:58:49 +09:00
austinried f453ca1c01 setup workflows for main 2023-04-28 12:26:02 +09:00
austinried bbd04a10b4 create .env file first 2023-04-28 12:26:02 +09:00
austinried b2f8ef6f38 rename workflow 2023-04-28 12:26:02 +09:00
austinried c81162c1f3 aab build, release signing
clean up analyze issues
2023-04-28 12:26:02 +09:00
austinried 0b698c30c0 get version? 2023-04-28 12:26:02 +09:00
austinried 16e3b1b9ea use a valid .env file from example 2023-04-28 12:26:02 +09:00
austinried 3765a55bb5 please grab artifact 2023-04-28 12:26:02 +09:00
austinried 547266f64c forgot .env file 2023-04-28 12:26:02 +09:00
austinried 2f9f2701a6 signing config & build apk 2023-04-28 12:26:02 +09:00
austinried eaecda6aab v2 2023-04-28 12:26:02 +09:00
austinried f0188e0279 don't require build for i18n file PRs 2022-04-16 17:01:39 +09:00
austinried 6a0e2c8be2 update build to main branch
add new ignores
2022-03-28 14:32:08 +09:00
austinried fed4a4b217 run validation before yarn license (#77)
* run validation before yarn license

* attempt to fix CI errors

https://github.com/yarnpkg/yarn/issues/7212
2022-03-28 14:05:49 +09:00
austinried a061a2d093 remove gradle wrapper that fails validation 2021-09-07 16:48:49 +09:00
austinried 85aaef4528 enable ffmpeg prep for GH builds 2021-09-07 15:23:57 +09:00
austinried ad829ed93a added licenses and webview for them
added link to github page
2021-08-26 12:47:56 +09:00
austinried 3e3523baa8 lint builds 2021-08-26 08:07:32 +09:00
austinried 06c533be48 stop building on non-app file changes 2021-08-24 15:57:46 +09:00
austinried 4bc46489cb better name/group artifacts 2021-08-24 15:31:22 +09:00
austinried d59d473be6 looks to be working, set to only release tags 2021-08-24 11:13:03 +09:00
austinried 13e4321d8b missed a character 2021-08-24 10:59:02 +09:00
austinried 28b05cb413 fix run syntax 2021-08-24 10:57:41 +09:00
austinried 45b2039eff test release signing w/secrets 2021-08-24 10:54:18 +09:00
austinried 5166511ca2 test gradle validation/caching 2021-08-24 09:27:00 +09:00
austinried d25e723d07 test gradle build/artifact 2021-08-23 22:36:18 +09:00
austinried e391069c81 test yarn 2021-08-23 22:26:06 +09:00
austinried 5dab99c173 test actions 2021-08-23 22:07:37 +09:00