Skip to content

Create a draft release for each version tag and split Build & Test job - #10

Merged
armartinez merged 1 commit into
try-containers:mainfrom
armartinez:draft-releases
Dec 1, 2026
Merged

armartinez merged 1 commit into
try-containers:mainfrom
armartinez:draft-releases

Conversation

@armartinez

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Release notes need each change matched to its pull requests on GitHub, but not on the App Store or the website. The App Store What's New text can't carry them, so it can't be the source of the GitHub release anymore. Writing the notes in a draft release instead keeps one text that the App Store and website copy without the pull request numbers.

Versions also need testing in TestFlight before they're tagged, and a tagged build shouldn't reach TestFlight unless its commit passed Build & Test.

The Test job only ran ContainersCoreTests, so test targets added later would have been skipped. And the shared build template had become an extra layer: Deploy to TestFlight's archive already builds the app, and formatting, lint and tests run on every pull request and on main.

Description

  • Build & Test:
    • The jobs from the removed template now live in this workflow.
    • Build checks formatting and lint, then runs build-for-testing, which compiles the app and every test target in the Containers (macOS) scheme. It saves the build products as an artifact.
    • Test downloads those products and runs test-without-building with their .xctestrun file, so it tests the Build job's binaries and every test target in the scheme.
    • upload-artifact is now v7.0.2 and download-artifact v8.0.2.
  • Deploy to TestFlight:
    • Running it by hand uploads a test build of any branch, with no tag or release.
    • For a version tag, it checks that the tag is on main, that Build & Test passed on its commit and that it matches MARKETING_VERSION. It then uploads the final build and creates a draft release for the tag, with empty notes.
    • It no longer builds and tests through the template before archiving.
  • Publish Release: once a version is live, it publishes the version's draft release and adds a Mac App Store link. It stops with a warning if there's no draft or the draft has no notes, and no longer reads the App Store What's New text.
  • Build template: containers-build-template.yml is removed.
  • AGENTS.md and CONTRIBUTING.md:
    • Tests run through the Containers (macOS) scheme.
    • The Releases section describes test builds, the draft release and its notes format: a summary sentence, then one bullet per change with its pull requests.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Locally, I ran build-for-testing and test-without-building on the products after moving them to another folder, with the same excludes and commands as the workflow, and all 132 tests passed. The Build & Test check's API lookup returns the conclusion of the run on a commit. The workflows themselves haven't run on GitHub yet; this pull request runs Build & Test, and the first version tag runs the rest.

@armartinez armartinez self-assigned this Dec 1, 2026
@armartinez
armartinez merged commit 29fb3a6 into try-containers:main Dec 1, 2026
1 of 2 checks passed
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.

1 participant