From 70d4547b439d128d904e45dc2246ac198a897513 Mon Sep 17 00:00:00 2001 From: hustcer Date: Fri, 24 Nov 2023 08:51:06 +0800 Subject: [PATCH] Exit the release job if creating binary package failed --- .github/workflows/release-pkg.nu | 4 ---- .github/workflows/release-test.yml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index e6394d712..7c9a9b594 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -138,8 +138,6 @@ print $'(char nl)Copying release files...'; hr-line > register ./nu_plugin_query" | save $'($dist)/README.txt' -f [LICENSE $executable] | each {|it| cp -rv $it $dist } | flatten -# Sleep a few seconds to make sure the cp process finished successfully -sleep 3sec print $'(char nl)Check binary release version detail:'; hr-line let ver = if $os == 'windows-latest' { @@ -157,8 +155,6 @@ if ($ver | str trim | is-empty) { cd $dist; print $'(char nl)Creating release archive...'; hr-line if $os in [$USE_UBUNTU, 'macos-latest'] { - print 'Files in Current directory:' - print (ls) let files = (ls | get name) let dest = if $env.RELEASE_TYPE == 'full' { $'($bin)-($version)-($FULL_NAME)' } else { $'($bin)-($version)-($target)' } let archive = $'($dist)/($dest).tar.gz' diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index fc740ad71..bc64f9138 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -97,7 +97,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3.8 with: - version: 0.87.1 + version: 0.86.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}