From da0b580504f320b11f9701253825d64a9996292e Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Tue, 2 Apr 2024 14:23:29 +0200 Subject: [PATCH] CI: change publish step condition Hopefully, this fixes our release artifact problems. --- .github/workflows/CICD.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index b191b41d3..30e1ae7a8 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -541,9 +541,6 @@ jobs: PKG_BASENAME=${PROJECT_NAME}-${REF_TAG:-$REF_SHAS}-${{ matrix.job.target }} PKG_NAME=${PKG_BASENAME}${PKG_suffix} outputs PKG_suffix PKG_BASENAME PKG_NAME - # deployable tag? (ie, leading "vM" or "M"; M == version number) - unset DEPLOY ; if [[ $REF_TAG =~ ^[vV]?[0-9].* ]]; then DEPLOY='true' ; fi - outputs DEPLOY # DPKG architecture? unset DPKG_ARCH case ${{ matrix.job.target }} in @@ -749,7 +746,7 @@ jobs: fi - name: Publish uses: softprops/action-gh-release@v2 - if: steps.vars.outputs.DEPLOY + if: startsWith(github.ref, 'refs/tags/') with: files: | ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}