Skip to content

Commit

Permalink
Merge pull request #6270 from rivy/fix.CICD
Browse files Browse the repository at this point in the history
fix/CI ~ re-enable artifact deployment for version tagged commits
  • Loading branch information
sylvestre authored Apr 24, 2024
2 parents 72b4a08 + df3c3f3 commit 04b6b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
pull_request:
push:
tags:
- '*'
branches:
- main

Expand Down Expand Up @@ -541,6 +542,9 @@ 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 @@ -746,7 +750,7 @@ jobs:
fi
- name: Publish
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
if: steps.vars.outputs.DEPLOY
with:
files: |
${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}
Expand Down

0 comments on commit 04b6b7f

Please sign in to comment.