Add build, package and release workflows - #22
Merged
Merged
Conversation
Owner
Author
|
Changed as requested:
That makes the triggers non-overlapping on their own, so the README_DEV updated to match. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3. Finishes the open part of #1 and unblocks #21.
Workflows
Release calls Package, and Package calls Build, so nothing is duplicated.
build.ymlswift build,swift test,ray lintpackage.ymlmainbundle.shplus the zipped app as an artifact; install, test and audit the Homebrew formula from a local tap;ray build, which compiles the app into the extensionrelease.ymlmainFor a macOS app, "package" is the equivalent of your Docker image build: Build only checks that the code compiles and passes tests, while Package checks that the three shipping artifacts can be produced — the signed
.app, a working Homebrew formula and the Raycast extension bundle.No duplicate runs
Every workflow triggers on all pull requests, and each also runs when its own workflow file or one it depends on changes. A first
scopejob then calls the new.github/actions/ci-scope, which reads the changed files and picks the outermost workflow that must run:release.yml,package.yml,build.yml,determine-version,ci-scope) → Release runs, as a dry run: it packages and prints what it would publish, but creates no release, commit or Store submission.main, orpackage.yml/build.yml/ci-scopechanged → Package runs.The other two skip. A called workflow skips its own
scopejob, becausegithub.workflowis then the caller's name.Release details
determine-versionaction.bundle.shnow writes$VERSIONinto the Info.plist when set, and the formula sets it from the tag for stable builds.v<version>at the pushed commit, withKlangLadder-v<version>.zipand a Gatekeeper note.urlto the new tag plus revision and commits it tomainasgithub-actions[bot]. Pushes made withGITHUB_TOKENdon't trigger workflows, so this doesn't loop. If you protectmainlater, the bot needs an exception.../..path dependency for the GitHub URL at the new version, since the Store builds the extension outside this repo.ray publishneeds two secrets,RAYCAST_TOKENandRAYCAST_GITHUB_TOKEN. Without them the step logs a warning and skips.Tested
actionlintpasses.VERSION=… ./bundle.shwere run locally: the version lands in the Info.plist, the signature still verifies, and rewriting the formula twice in a row is idempotent.scopegating behaves as intended.Notes
ray publishin CI is untested and needs Publish the Raycast extension to the Raycast Store #21 first (a Store username and a LICENSE file).macos-latest. If its Xcode drops below 16.3, the Raycast build breaks.