From 243c15ea83a323471a2493e22d1fa8efaee25651 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 4 Jun 2025 17:32:24 +0200 Subject: [PATCH] ci(release): drop manual shasum collection This is now included for all GH release assets out-of-the-box, see https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/ These can be accessed programmatically through `gh release view --json assets ` and then looking at the `digest` key. --- .github/workflows/notes.md | 2 -- .github/workflows/release.yml | 16 ++-------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/notes.md b/.github/workflows/notes.md index ac66e0a816..4b648e9207 100644 --- a/.github/workflows/notes.md +++ b/.github/workflows/notes.md @@ -75,5 +75,3 @@ If your system does not have the [required glibc version](https://neovim.io/doc/ ### Other - Install by [package manager](https://github.com/neovim/neovim/blob/master/INSTALL.md#install-from-package) - -## SHA256 Checksums diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e226e78f90..8fe8d3a47c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -193,25 +193,13 @@ jobs: echo 'PRERELEASE=') >> $GITHUB_ENV gh release delete stable --yes || true git push origin :stable || true - # `sha256sum` outputs , so we cd into each dir to drop the - # containing folder from the output. - - run: | - for i in nvim-*; do - ( - cd $i || exit - sha256sum * >> $GITHUB_WORKSPACE/shasum.txt - ) - done - name: Publish release env: NVIM_VERSION: ${{ needs.linux.outputs.version }} DEBUG: api run: | envsubst < "$GITHUB_WORKSPACE/.github/workflows/notes.md" > "$RUNNER_TEMP/notes.md" - echo '```' >> "$RUNNER_TEMP/notes.md" - cat shasum.txt >> "$RUNNER_TEMP/notes.md" - echo '```' >> "$RUNNER_TEMP/notes.md" if [ "$TAG_NAME" != "nightly" ]; then - gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos-x86_64/* nvim-macos-arm64/* nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/* nvim-win64/* shasum.txt + gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos-x86_64/* nvim-macos-arm64/* nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/* nvim-win64/* fi - gh release create $TAG_NAME $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos-x86_64/* nvim-macos-arm64/* nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/* nvim-win64/* shasum.txt + gh release create $TAG_NAME $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos-x86_64/* nvim-macos-arm64/* nvim-linux-x86_64/* nvim-linux-arm64/* nvim-appimage-x86_64/* nvim-appimage-arm64/* nvim-win64/*