Skip to content

Commit

Permalink
CI: change publish step condition
Browse files Browse the repository at this point in the history
Hopefully, this fixes our release artifact problems.
  • Loading branch information
tertsdiepraam committed Apr 2, 2024
1 parent 076710d commit da0b580
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit da0b580

Please sign in to comment.