[github] Make GitHub releases clearer
- Add brief instructions to the release notes, with a direct link to the
README
- Rename the remote port to .remoteport.py to make it distinct from
the other .port.py
- Link to the commit log instead of a commit message
See a preview here:
https://github.com/google/dawn/releases/tag/v20250527.140004
(I manually edited the release notes of that release to use one
generated locally using this change).
No-Try: true
Bug: 371024051
Change-Id: I21bd3faa448c14c8fba1cfb3fa25fe03ee978f81
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/244054
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
diff --git a/.github/workflows/package-emdawnwebgpu.sh b/.github/workflows/package-emdawnwebgpu.sh
index 20bed49..5d2d5b6 100755
--- a/.github/workflows/package-emdawnwebgpu.sh
+++ b/.github/workflows/package-emdawnwebgpu.sh
@@ -38,7 +38,7 @@
PKG_VERSION=v${VERSION_DATETIME}
fi
PKG_FILE=emdawnwebgpu_pkg-${PKG_VERSION}.zip
-REMOTE_PORT_FILE=emdawnwebgpu-${PKG_VERSION}.port.py
+REMOTE_PORT_FILE=emdawnwebgpu-${PKG_VERSION}.remoteport.py
# Initialize dependencies. We could use gclient for this, but then we still have to
# install gclient, and it takes a long time. We only need a few deps for emdawnwebgpu.
@@ -64,7 +64,7 @@
# Create zip
cat << EOF > out/wasm/emdawnwebgpu_pkg/VERSION.txt
-Dawn release ${PKG_VERSION} at revision <https://dawn.googlesource.com/dawn/+/${SHA}>.
+Dawn release ${PKG_VERSION} at revision <https://dawn.googlesource.com/dawn/+log/${SHA}>.
Built/tested with emsdk release ${EMSDK_VERSION}.
EOF
(cd out/wasm && zip -9roX - emdawnwebgpu_pkg > "../../${PKG_FILE}")
@@ -96,7 +96,8 @@
cat << EOF > RELEASE_INFO.md
$(cat out/wasm/emdawnwebgpu_pkg/VERSION.txt)
-For instructions, see the README (included in the zip and the port file docstring).
+Use either the \`emdawnwebgpu-*.remoteport.py\` file (Emscripten 4.0.10+) or the \`emdawnwebgpu_pkg-*.zip\`.
+For full instructions, see the [README](https://dawn.googlesource.com/dawn/+/${SHA}/src/emdawnwebgpu/pkg/README.md) which is included in both files.
EOF
# Save version numbers for later steps