From 69c029b1edbb9b5b63a1ea5d6e84e9f23d6e5970 Mon Sep 17 00:00:00 2001 From: leon3s Date: Thu, 14 Nov 2024 15:34:36 +0100 Subject: [PATCH] fix: windows workflow --- .github/workflows/draft_nightly_nanocl.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/draft_nightly_nanocl.yml b/.github/workflows/draft_nightly_nanocl.yml index 4c68901b..66b3a8f7 100644 --- a/.github/workflows/draft_nightly_nanocl.yml +++ b/.github/workflows/draft_nightly_nanocl.yml @@ -216,7 +216,11 @@ jobs: - name: Update draft release if: steps.release-exists.outcome == 'success' && steps.release-exists.conclusion == 'success' run: | - gh release delete-asset -y $env:BINARY_NAME-$env:VERSION-$env:CHANNEL $env:BINARY_NAME_$env:VERSION_windows_amd64.tar.gz || true - gh release upload $env:BINARY_NAME-$env:VERSION-$env:CHANNEL release/$env:BINARY_NAME_$env:VERSION_windows_amd64.tar.gz#nanocl_windows_amd64.tar.gz + gh release delete-asset -y ` + $env:BINARY_NAME-$env:VERSION-$env:CHANNEL ` + $env:BINARY_NAME_$env:VERSION_windows_amd64.tar.gz || exit /b 0 + gh release upload ` + $env:BINARY_NAME-$env:VERSION-$env:CHANNEL ` + release/$env:BINARY_NAME_$env:VERSION_windows_amd64.tar.gz#nanocl_windows_amd64.tar.gz env: GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}