From 60739fa02e54160a27afcd4f4c5f66d035d30846 Mon Sep 17 00:00:00 2001 From: Josh Kunz Date: Sat, 30 Dec 2023 10:16:49 -0800 Subject: [PATCH] YOLO Fix release script --- .github/workflows/test.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4e96486..2738d30 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -102,15 +102,16 @@ jobs: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_TAG: ${{ github.ref }} run: | - tag="${{ github.ref }}" # Cut off the "refs/tags" prefix. - tag="${tag#"refs/tags/"}" - hub release create \ + tag="${RELEASE_TAG#"refs/tags/"}" + gh release create \ --draft \ - --message "${tag}" \ - --attach release/ashuffle.x86_64-linux-gnu \ - --attach release/ashuffle.aarch64-linux-gnu \ - --attach release/ashuffle.armv7h-linux-gnueabihf \ - --attach release/ashuffle.armv6h-linux-gnueabihf \ - "${tag}" + --title "${tag}" \ + --generate-notes \ + "${tag}" \ + release/ashuffle.x86_64-linux-gnu \ + release/ashuffle.aarch64-linux-gnu \ + release/ashuffle.armv7h-linux-gnueabihf \ + release/ashuffle.armv6h-linux-gnueabihf