From 393cb3300c0d7864c725a91f5984af6a348dfa52 Mon Sep 17 00:00:00 2001 From: nopeless <38830903+nopeless@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:14:31 -0500 Subject: [PATCH] fix: breaking workflow and upload artifact (#1417) * feat: allow manual executable build for github * fix: manual dispatch behavior * fix: use full sha --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3565ce40..1acfae9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,9 +22,18 @@ jobs: - name: Publish run: | dotnet publish app/GHelper.sln --configuration Release --runtime win-x64 -p:PublishSingleFile=true --no-self-contained - powershell Compress-Archive app/bin/x64/Release/net7.0-windows/win-x64/publish/* GHelper.zip + powershell Compress-Archive app/bin/x64/Release/net7.0-windows/win-x64/publish/* GHelper-${{ github.sha }}.zip + - name: Upload + if: github.event_name != 'workflow_dispatch' env: GH_TOKEN: ${{ github.token }} run: | gh release upload ${{ github.ref_name }} GHelper.zip + + - name: Artifact + if: github.event_name == 'workflow_dispatch' + uses: actions/upload-artifact@v3 + with: + name: GHelper-release-${{ github.sha }} + path: GHelper-*.zip