-
Notifications
You must be signed in to change notification settings - Fork 0
release: prepare v0.1.0-alpha.1 #18
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 all commits
Commits
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 |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| concurrency: | ||
| group: release-${{ github.ref_name }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| github-release: | ||
| name: publish GitHub release | ||
| runs-on: ubuntu-latest | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
|
|
||
| - name: Verify tag target and release notes | ||
| id: release | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| git fetch --force origin main:refs/remotes/origin/main --tags | ||
|
|
||
| TAG="${GITHUB_REF_NAME}" | ||
| VERSION="${TAG#v}" | ||
| NOTES="docs/releases/${VERSION}.md" | ||
| TAG_COMMIT="$(git rev-parse "${TAG}^{commit}")" | ||
|
|
||
| if ! git merge-base --is-ancestor "${TAG_COMMIT}" origin/main; then | ||
| echo "::error::Release tags must target commits reachable from origin/main." | ||
| echo "::error::Tag ${TAG} targets ${TAG_COMMIT}, which is not on origin/main." | ||
| exit 1 | ||
| fi | ||
|
|
||
| if [[ ! -f "${NOTES}" ]]; then | ||
| echo "::error::Missing release notes file: ${NOTES}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| { | ||
| echo "tag=${TAG}" | ||
| echo "version=${VERSION}" | ||
| echo "notes=${NOTES}" | ||
| if [[ "${VERSION}" == *-* ]]; then | ||
| echo "prerelease=true" | ||
| else | ||
| echo "prerelease=false" | ||
| fi | ||
| } >>"${GITHUB_OUTPUT}" | ||
|
|
||
| - name: Publish GitHub release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| TAG="${{ steps.release.outputs.tag }}" | ||
| NOTES="${{ steps.release.outputs.notes }}" | ||
| PRERELEASE="${{ steps.release.outputs.prerelease }}" | ||
|
|
||
| if gh release view "${TAG}" >/dev/null 2>&1; then | ||
| echo "::notice::GitHub release ${TAG} already exists; leaving it unchanged." | ||
| exit 0 | ||
| fi | ||
|
|
||
| args=( | ||
| release create "${TAG}" | ||
| --verify-tag | ||
| --title "${TAG}" | ||
| --notes-file "${NOTES}" | ||
| ) | ||
|
|
||
| if [[ "${PRERELEASE}" == "true" ]]; then | ||
| args+=(--prerelease) | ||
| fi | ||
|
|
||
| gh "${args[@]}" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # v0.1.0-alpha.1 Release Notes | ||
|
|
||
| Target date: 2026-06-24 | ||
|
|
||
| Status: draft until the `v0.1.0-alpha.1` tag is created from `main`. | ||
|
|
||
| ## Release Type | ||
|
|
||
| `v0.1.0-alpha.1` is the first Edict front-end milestone release. It tags the | ||
| current parser, source-AST semantic validation, topic shelves, and local | ||
| verification gate. | ||
|
|
||
| This is not a complete compiler or admission-stack release. | ||
|
|
||
| ## Version Policy | ||
|
|
||
| - `crates/edict-syntax` is versioned as `0.1.0-alpha.1`. | ||
| - `xtask` remains an internal workspace helper at `0.0.0`. | ||
| - `publish = false` remains in force for all workspace member packages. | ||
| - Versions currently track repository/specification maturity, not crates.io API | ||
| stability. | ||
|
|
||
| ## Included | ||
|
|
||
| - Phase 1 `edict-syntax` lexer/parser for the landed source-AST subset. | ||
| - Phase 2 source-AST semantic validation through `SEMVAL-REQ-007`. | ||
| - Syntax and semantic-validation topic shelves. | ||
| - Library-hosted doctests for external topic Markdown examples. | ||
| - `cargo xtask verify` as the local release gate. | ||
| - Tag-triggered GitHub Release publication for tags that point at `main`. | ||
| - Release roadmap and GitHub milestone schedule. | ||
|
|
||
| ## Explicit Non-Goals | ||
|
|
||
| - No crates.io publish. | ||
| - No canonical Core encoder. | ||
| - No Core IR lowering from the source AST. | ||
| - No canonical Core hash golden fixtures. | ||
| - No compiler CLI. | ||
| - No target profile conformance fixtures. | ||
| - No target lowerers. | ||
| - No admission tooling. | ||
| - No target, Core, admission, or bundle-integrity claim. | ||
|
|
||
| ## Required Verification | ||
|
|
||
| Before tagging: | ||
|
|
||
| - `cargo xtask verify` must pass on the release commit. | ||
| - GitHub Actions on `main` must pass for MSRV Rust 1.85.0 and stable Rust. | ||
| - Issue #16 must have its release checklist completed or explicitly deferred. | ||
|
|
||
| ## Tagging Plan | ||
|
|
||
| After the release-prep PR lands and the `main` release commit is verified: | ||
|
|
||
| ```text | ||
| git tag -a v0.1.0-alpha.1 -m "v0.1.0-alpha.1" | ||
| git push origin v0.1.0-alpha.1 | ||
| ``` | ||
|
|
||
| Pushing that tag to GitHub triggers the release workflow. The workflow verifies | ||
| that the tag target is reachable from `origin/main`, loads these release notes | ||
| from `docs/releases/v0.1.0-alpha.1.md`, and publishes the GitHub Release as a | ||
| prerelease. It does not publish crates. | ||
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.
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.