From fb1325e8d5cf118b7c7827d4cde1fcc5759a4648 Mon Sep 17 00:00:00 2001 From: williamhCode Date: Sun, 22 Dec 2024 11:01:59 +0800 Subject: [PATCH] update sht --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2309ecc..0739815 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,12 +67,15 @@ jobs: - name: Prepare artifacts run: | cd build/release - echo "ARTIFACT_NAME=$(ls Neogurt*.dmg)" >> $GITHUB_ENV + ARTIFACT_NAME=$(ls Neogurt*.dmg) + ARTIFACT_NAME_NO_EXT=${ARTIFACT_NAME%.dmg} + echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV + echo "ARTIFACT_NAME_NO_EXT=$ARTIFACT_NAME_NO_EXT" >> $GITHUB_ENV - name: Upload build artifacts uses: actions/upload-artifact@v4 with: - name: ${{ env.ARTIFACT_NAME }} + name: ${{ env.ARTIFACT_NAME_NO_EXT }} path: build/release/${{ env.ARTIFACT_NAME }} create-release: @@ -93,6 +96,8 @@ jobs: run: | gh release delete nightly --yes || true git push origin :nightly || true + + ls -al artifacts gh release create nightly artifacts/* \ --title "Neogurt dev build" \ --notes "Dev build for commit ${{ github.sha }}" \