-
Notifications
You must be signed in to change notification settings - Fork 1
Model deploy pins as a rolling candidate + frozen releases (audited 0_1_1 preserved)
#283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
649df63
Consolidate deploy repo to rolling candidate + frozen audited 0_1_1
claude ae238d6
Remove scratch test logs accidentally staged by git add -A
claude 5680253
Remove current-source deploy path; only audited versions deploy
thedavidmeister b526e20
Remove current-source deploy path; PR#283 CI + CodeRabbit fixes
claude 4655289
foundry.toml version 0.1.30 (next release above soldeer 0.1.29 ceiling)
thedavidmeister 7ae404b
PR#283 CodeRabbit round-2: drop candidate on-chain checks from Base fork
claude 0f64809
Review nits: stale refs to removed deploy path + strict X.Y.Z gate in…
thedavidmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,30 @@ | ||
| name: Package Release | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| tags: | ||
| - sol-v* | ||
| jobs: | ||
| release: | ||
| # rainix-autopublish's job requests contents: write (to push the version- | ||
| # bump commit + tag) and id-token: write. This repo's default workflow-token | ||
| # permission is read-only, so without granting these here the reusable's | ||
| # request exceeds the caller and the run fails at startup. Grant exactly the | ||
| # scopes the reusable needs, per workflow, rather than flipping the whole | ||
| # repo default to write. | ||
| # rainix-tag-release verifies the tag, publishes to soldeer, freezes the | ||
| # candidate snapshot into a numbered release dir, and commits it back — so it | ||
| # needs contents: write (push the release commit) and id-token: write. This | ||
| # repo's default workflow-token permission is read-only, so grant exactly | ||
| # those scopes here or the reusable's request exceeds the caller and the run | ||
| # fails at startup. | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-autopublish.yaml@main | ||
| # A DEPLOY repo is on the tag-release lifecycle, not autopublish. A release | ||
| # is cut by pushing a `sol-vX.Y.Z` tag (never on merge); deployment is a | ||
| # separate manual step. `[package].version` is the LAST released version and | ||
| # moves only at release, in lockstep with the frozen snapshot the tag cuts. | ||
| # This is the counterpart to library repos, which use rainix-autopublish and | ||
| # bump a next-version slot on every merge. Mirrors the rain.factory.deploy | ||
| # caller. `cut-release.sh` freezes `src/generated/candidate/` into | ||
| # `src/generated/<version>/` (see the script) then regenerates the libs. | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-tag-release.yaml@main | ||
| with: | ||
| # `foundry.toml` version is the NEXT (in-development) release (see #244). On | ||
| # merge, publish that version and bump to the next — the bump no longer | ||
| # generates artifacts (rainix#267). A version's deploy-pin snapshot is built | ||
| # by the PR that changes the bytecode: run | ||
| # `forge script ./script/BuildPointers.sol` (after `forge soldeer install`) | ||
| # and commit the new `src/generated/<tag>/` snapshot + regenerated deploy | ||
| # libs. The LibProdDeploy fork/deploy tests fail if a snapshot is stale, and | ||
| # the rainix append-only check (rainix#268) rejects any change to a snapshot | ||
| # already on main, so snapshots stay frozen once merged. | ||
| soldeer-package: st0x-deploy | ||
| # Secrets are passed explicitly (not `inherit`), mirroring this repo's other | ||
| # cross-org rainix callers (e.g. rainix-sol.yaml). Only SOLDEER_API_TOKEN is | ||
| # required for the publish; the rest are optional and fall back cleanly when | ||
| # empty (bot git identity; GITHUB_TOKEN push, since main is unprotected). | ||
| secrets: | ||
| SOLDEER_API_TOKEN: ${{ secrets.SOLDEER_API_TOKEN }} | ||
| PUBLISH_PRIVATE_KEY: ${{ secrets.PUBLISH_PRIVATE_KEY }} | ||
| CI_GIT_EMAIL: ${{ secrets.CI_GIT_EMAIL }} | ||
| CI_GIT_USER: ${{ secrets.CI_GIT_USER }} | ||
| tag-prefix: sol-v | ||
| snapshot-generate-cmd: bash script/cut-release.sh | ||
| secrets: inherit | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.