summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2021-02-17 15:12:12 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-02-18 07:59:10 +0100
commitb98ec4bbc56ad1b83900369ec94f08038468b316 (patch)
tree5240d0a2926162e48d349d3ddfe49939870ecbfe
parent94fd481f36166eb2c54edea7c78aa5396f023972 (diff)
CICD: Build: Check IS_RELEASE in separate step
And move it closer to where it is actually needed, to reduce its scope. For #1474
-rw-r--r--.github/workflows/CICD.yml10
1 files 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 }}