Branchwell

Bucksley / app / RELEASING.md

Show the source

Releasing Bucksley

Two pipelines, both scripted and both runnable from this Mac or from GitHub Actions.

WhatScriptGitHub workflowWhere it lands
Mac app (direct download + auto-update)scripts/release-mac.sh <version> --notes "…" [--publish]Mac release (mac-release.yml, run manually)bucksley.ai/downloads/Bucksley-<version>.dmg and the Sparkle feed bucksley.ai/appcast.xml, via protomota/bucksley-site main → Vercel
iPhone app (TestFlight)scripts/release-ios.sh [--build N]TestFlight (testflight.yml, run manually)App Store Connect app 6839304813, internal group "Bucksley Internal"

Every push to main also runs Checks (checks.yml): package tests plus unsigned Mac and iPhone builds.

App Store listing content (description, screenshots, review submission) is not part of this pipeline.

Mac release

  1. scripts/release-mac.sh 0.1.1 --notes "What changed" regenerates the Xcode project, archives BucksleyMac,
    exports with Developer ID and the "Bucksley Developer ID" profile (iCloud), notarizes and staples the app,
    builds the house drag installer (installer/, artwork in Apps/Mac/installer-background.tiff), signs and
    notarizes the DMG, signs the update with Sparkle's EdDSA key and writes appcast.xml.
  2. It copies the DMG to ../bucksley-site/downloads/, the feed to ../bucksley-site/appcast.xml, runs the
    site's tools/set-release.sh (download links, version, size, JSON-LD) and bumps the version and build in project.yml.
  3. Without --publish it stops so you can review both repos. With --publish it commits and pushes
    bucksley-site and this repo to main, then waits until bucksley.ai serves the new feed and a byte-identical DMG.

Work files go to /Volumes/Expand/Projects/Bucksley/release/<version>-<build>/ (BUCKSLEY_RELEASE_DIR overrides, BUCKSLEY_SITE_DIR points at another site checkout).

Credentials on this Mac: the Developer ID certificate in the login Keychain, the Sparkle private key in the login Keychain (account com.protomota.bucksley, made by Sparkle's generate_keys), and the notarization key from Bitwarden Secrets Manager (APP_STORE_CONNECT_API_KEY, APP_STORE_CONNECT_KEY_ID, APP_STORE_CONNECT_ISSUER_ID).

The app checks https://bucksley.ai/appcast.xml (Sparkle 2, public key in project.yml). Debug builds never check. Bucksley → Check for Updates… checks by hand.

TestFlight

scripts/release-ios.sh reads the version from project.yml, picks the next build number from App Store Connect, archives BucksleyPhone with Apple Distribution and the "Bucksley App Store" profile, uploads with altool, waits for processing and makes the build available to the internal group. Testers must accept the TestFlight invitation email before they get build notifications.

Credentials on this Mac: the Apple Distribution certificate in the login Keychain and the upload key from Secrets Manager (INKSPRING_ASC_UPLOAD_KEY_ID, _ISSUER_ID, _PRIVATE_KEY; override the prefix with BUCKSLEY_ASC_SECRET_PREFIX).

GitHub secrets

SecretUsed byValue
APPLE_API_KEY, APPLE_API_KEY_ID, APPLE_API_ISSUERMac releaseNotarization key (.p8 text), key ID, issuer ID
BUCKSLEY_SPARKLE_EDDSA_PRIVATE_KEYMac releasegenerate_keys --account com.protomota.bucksley -x key.txt
SITE_REPO_TOKENMac releaseFine-grained token with Contents read/write on protomota/bucksley-site
DEVELOPER_ID_P12_BASE64, DEVELOPER_ID_P12_PASSWORDMac releaseDeveloper ID Application certificate + key exported as .p12
ASC_UPLOAD_KEY, ASC_UPLOAD_KEY_ID, ASC_UPLOAD_ISSUERTestFlightApp Store Connect upload key (Admin or App Manager)
DISTRIBUTION_P12_BASE64, DISTRIBUTION_P12_PASSWORDTestFlightApple Distribution certificate + key exported as .p12

The provisioning profiles are checked in under signing/ (they hold no secrets) and the scripts install them.

Apple setup

  • Bundle ID com.protomota.bucksley (team 22HV69L32T, universal) with iCloud, Push Notifications and
    Sign in with Apple: registered 2026-11-25 through the App Store Connect API.
  • iCloud container iCloud.com.protomota.bucksley: created 2026-11-25 in the developer portal and enabled on
    the bundle ID.
  • App Store Connect app "Bucksley: Read-Only Finance" (SKU bucksley, Apple ID 6839304813): created 2026-11-25.
    scripts/asc.py app-id finds its ID by bundle ID. Never submit it for review from these scripts.
  • Profiles "Bucksley Developer ID" (Mac, Developer ID, cert V3D25LB5M4) and "Bucksley App Store" (iOS, Apple
    Distribution, cert WH27C9B5PQ), both with the iCloud container, are in signing/ (created 2026-11-25 through
    the App Store Connect API).

Public repository note: signing profiles, release credentials and the GitHub release workflows are not included here. To ship your own build, use your own Apple Developer team, bundle identifiers and iCloud container.