From b98ec4bbc56ad1b83900369ec94f08038468b316 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 17 Feb 2021 15:12:12 +0100 Subject: [PATCH] CICD: Build: Check IS_RELEASE in separate step And move it closer to where it is actually needed, to reduce its scope. For #1474 --- .github/workflows/CICD.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 7e854727..4095a84d 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -114,8 +114,6 @@ jobs: id: vars shell: bash run: | - unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi - echo ::set-output name=IS_RELEASE::${IS_RELEASE} # target-specific options # # * test only library unit tests and binary for arm-type targets unset CARGO_TEST_OPTIONS @@ -376,9 +374,15 @@ jobs: with: name: ${{ steps.debian-package.outputs.DPKG_NAME }} path: ${{ steps.debian-package.outputs.DPKG_PATH }} + - name: Check is release + id: is-release + shell: bash + run: | + unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi + echo ::set-output name=IS_RELEASE::${IS_RELEASE} - name: Publish archives and packages uses: softprops/action-gh-release@v1 - if: steps.vars.outputs.IS_RELEASE + if: steps.is-release.outputs.IS_RELEASE with: files: | ${{ steps.package.outputs.PKG_PATH }}