on master help sign in
CICD: Build: Check IS_RELEASE in separate step
b98ec4bMartin Nordholts
.github/workflows/CICD.yml+7−3
@@ -114,8 +114,6 @@ jobs:
114 id: vars
114 id: vars
115 shell: bash
115 shell: bash
116 run: |
116 run: |
117− unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
118− echo ::set-output name=IS_RELEASE::${IS_RELEASE}
119 # target-specific options
117 # target-specific options
120 # # * test only library unit tests and binary for arm-type targets
118 # # * test only library unit tests and binary for arm-type targets
121 unset CARGO_TEST_OPTIONS
119 unset CARGO_TEST_OPTIONS
@@ -376,9 +374,15 @@ jobs:
376 with:
374 with:
377 name: ${{ steps.debian-package.outputs.DPKG_NAME }}
375 name: ${{ steps.debian-package.outputs.DPKG_NAME }}
378 path: ${{ steps.debian-package.outputs.DPKG_PATH }}
376 path: ${{ steps.debian-package.outputs.DPKG_PATH }}
377+ - name: Check is release
378+ id: is-release
379+ shell: bash
380+ run: |
381+ unset IS_RELEASE ; if [[ $GITHUB_REF =~ ^refs/tags/v[0-9].* ]]; then IS_RELEASE='true' ; fi
382+ echo ::set-output name=IS_RELEASE::${IS_RELEASE}
379 - name: Publish archives and packages
383 - name: Publish archives and packages
380 uses: softprops/action-gh-release@v1
384 uses: softprops/action-gh-release@v1
381− if: steps.vars.outputs.IS_RELEASE
385+ if: steps.is-release.outputs.IS_RELEASE
382 with:
386 with:
383 files: |
387 files: |
384 ${{ steps.package.outputs.PKG_PATH }}
388 ${{ steps.package.outputs.PKG_PATH }}