A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
ci(release): the draft release body is the tag's changelog section
yhhd8cb57d7c095
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.ymlindex 18459a309..921f47253 100644--- a/.github/workflows/release-desktop.yml+++ b/.github/workflows/release-desktop.yml@@ -23,14 +23,21 @@ jobs:permissions:contents: writesteps:- - name: Create the draft release up front+ - uses: actions/checkout@v4++ # The release body is the tag's own section of CHANGELOG.md (the release+ # commit lands the section before the tag, so it is always present here).+ - name: Create the draft release with this version's changelog sectionenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: |+ v="${GITHUB_REF_NAME#v}"+ awk -v ver="$v" 'index($0, "## [" ver "]") == 1 {f=1; next} /^## \[/ {if (f) exit} f' CHANGELOG.md > /tmp/notes.md+ grep -q '[^[:space:]]' /tmp/notes.md || echo "See CHANGELOG.md for this release's notes." > /tmp/notes.mdgh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" \--draft --title "$GITHUB_REF_NAME" \- --notes "See CHANGELOG.md for this release's notes."+ --notes-file /tmp/notes.md# The engine wasm is platform-independent, so it is compiled ONCE here and# shared with the platform packagers as an artifact. This is what the