on master help sign in
CICD: Build: Always build and upload Debian packages

Not only when a release tag is pushed. Also publish these Debian packages as artifacts. This makes PR workflows more similar to release work flows, and reduces risk of build system regressions that we don't detect until we make a new release. For #1474

commit505ff10dc629b65d81630180d59960c369c39539 authorMartin Nordholts <enselic@gmail.com> dateSat 9 Jan 2021, 20:59 (6 years ago) parent9a3a554
1 file changed+8−3
.github/workflows/CICD.yml+8−3
.github/workflows/CICD.yml+8−3
@@ -135,8 +135,7 @@ jobs:
135135 x86_64-*-linux-*) DPKG_ARCH=amd64 ;;
136136 esac;
137137 echo ::set-output name=DPKG_ARCH::${DPKG_ARCH}
138− # DPKG version?
139− unset DPKG_VERSION ; if [[ $REF_TAG =~ ^[vV]?[0-9].* ]]; then DPKG_VERSION=${REF_TAG/#[vV]/} ; fi
138+ DPKG_VERSION=${PROJECT_VERSION}
140139 echo ::set-output name=DPKG_VERSION::${DPKG_VERSION}
141140 # DPKG base name/conflicts?
142141 DPKG_BASENAME=${PROJECT_NAME}
@@ -339,11 +338,17 @@ jobs:
339338 # build dpkg
340339 fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
341340 fi
342− - name: Upload build artifacts
341+ - name: Upload package artifact
343342 uses: actions/upload-artifact@master
344343 with:
345344 name: ${{ steps.vars.outputs.PKG_NAME }}
346345 path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}
346+ - name: Upload Debian package artifact
347+ uses: actions/upload-artifact@master
348+ if: steps.vars.outputs.DPKG_NAME
349+ with:
350+ name: ${{ steps.vars.outputs.DPKG_NAME }}
351+ path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}
347352 - name: Publish archives and packages
348353 uses: softprops/action-gh-release@v1
349354 if: steps.vars.outputs.DEPLOY