diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86c60cb..4959c17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: contents: write steps: - uses: actions/checkout@v4 - - name: Create draft from curated notes + - name: Create draft from curated and generated notes env: GH_TOKEN: ${{ github.token }} GH_REPO: ${{ github.repository }} @@ -44,7 +44,7 @@ jobs: if gh release view "$RELEASE_TAG" --json id > /dev/null 2>&1; then echo "Release already exists; leaving it unchanged." else - gh release create "$RELEASE_TAG" --verify-tag --draft \ + gh release create "$RELEASE_TAG" --verify-tag --draft --generate-notes \ --title "Minecraft Source Kit $RELEASE_TAG" \ --notes-file "docs/releases/$RELEASE_TAG.md" fi diff --git a/docs/UPDATING.md b/docs/UPDATING.md index bbb7d7c..e5cfd41 100644 --- a/docs/UPDATING.md +++ b/docs/UPDATING.md @@ -55,7 +55,7 @@ git tag -a v0.1.0 -m "Release v0.1.0" git push origin v0.1.0 ``` -The `release.yml` workflow runs for `v*` tags. It accepts only stable `vMAJOR.MINOR.PATCH` tags, checks the version, date, notes file, and that the tagged commit is on `main`, runs the existing four-job unit-test matrix, then creates a draft GitHub Release from the curated notes file. Review the draft and publish it manually; select Latest manually as appropriate. Never move a tag. If a workflow run fails, inspect it and rerun the same tag workflow after a transient failure; content corrections require a new corrected release tag and version. Do not poll CI from an agent; report the pending run for the user to check. A rerun skips release creation if that release already exists. GitHub's standard source ZIP and tar archives are the only source archives; do not add custom binaries or Minecraft caches. +The `release.yml` workflow runs for `v*` tags. It accepts only stable `vMAJOR.MINOR.PATCH` tags, checks the version, date, notes file, and that the tagged commit is on `main`, runs the existing four-job unit-test matrix, then creates a draft GitHub Release with the curated notes followed by GitHub's autogenerated pull request, contributor, and changelog section. Keep `CHANGELOG.md` manually maintained. Review the draft and publish it manually; select Latest manually as appropriate. Do not press **Generate release notes** again, to avoid replacing the reviewed body or duplicating generated sections. Never move a tag. If a workflow run fails, inspect it and rerun the same tag workflow after a transient failure; content corrections require a new corrected release tag and version. Do not poll CI from an agent; report the pending run for the user to check. A rerun skips release creation if that release already exists. GitHub's standard source ZIP and tar archives are the only source archives; do not add custom binaries or Minecraft caches. Do not include Minecraft inputs, reconstructed sources, or local tool caches.