From 23c9608335ffae76dccc7a7a41b832ed70392a30 Mon Sep 17 00:00:00 2001 From: Darwin Cereska <157426553+darwincereska@users.noreply.github.com> Date: Mon, 10 Nov 2025 14:12:09 -0500 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33d4ef3..cd7a478 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache Gradle packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.gradle/caches @@ -89,7 +89,7 @@ jobs: uses: actions/checkout@v4 - name: Download all artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts @@ -112,7 +112,7 @@ jobs: fi - name: Create Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: ${{ steps.version.outputs.tag }} name: Release ${{ steps.version.outputs.version }} @@ -167,7 +167,12 @@ jobs: ls -la release-assets/ echo "" echo "SHA256 hashes for Homebrew formula:" - echo "Linux x64: $(cat release-assets/notevc-linux-x64.tar.gz.sha256 | cut -d' ' -f1)" - echo "macOS x64: $(cat release-assets/notevc-macos-x64.tar.gz.sha256 | cut -d' ' -f1)" - echo "macOS ARM64: $(cat release-assets/notevc-macos-arm64.tar.gz.sha256 | cut -d' ' -f1)" - + if [ -f release-assets/notevc-linux-x64.tar.gz.sha256 ]; then + echo "Linux x64: $(cat release-assets/notevc-linux-x64.tar.gz.sha256 | cut -d' ' -f1)" + fi + if [ -f release-assets/notevc-macos-x64.tar.gz.sha256 ]; then + echo "macOS x64: $(cat release-assets/notevc-macos-x64.tar.gz.sha256 | cut -d' ' -f1)" + fi + if [ -f release-assets/notevc-macos-arm64.tar.gz.sha256 ]; then + echo "macOS ARM64: $(cat release-assets/notevc-macos-arm64.tar.gz.sha256 | cut -d' ' -f1)" + fi