summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2021-01-09 20:59:23 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-01-10 10:56:15 +0100
commit505ff10dc629b65d81630180d59960c369c39539 (patch)
tree77b1758e9efc4e09b23837ab249a828da80e7d8a /.github
parent9a3a5545e70d10f62d645e5f553b75ae13feb755 (diff)
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CICD.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml
index d4c29cdd..11d62fc1 100644
--- a/.github/workflows/CICD.yml
+++ b/.github/workflows/CICD.yml
@@ -135,8 +135,7 @@ jobs:
x86_64-*-linux-*) DPKG_ARCH=amd64 ;;
esac;
echo ::set-output name=DPKG_ARCH::${DPKG_ARCH}
- # DPKG version?
- unset DPKG_VERSION ; if [[ $REF_TAG =~ ^[vV]?[0-9].* ]]; then DPKG_VERSION=${REF_TAG/#[vV]/} ; fi
+ DPKG_VERSION=${PROJECT_VERSION}
echo ::set-output name=DPKG_VERSION::${DPKG_VERSION}
# DPKG base name/conflicts?
DPKG_BASENAME=${PROJECT_NAME}
@@ -339,11 +338,17 @@ jobs:
# build dpkg
fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
fi
- - name: Upload build artifacts
+ - name: Upload package artifact
uses: actions/upload-artifact@master
with:
name: ${{ steps.vars.outputs.PKG_NAME }}
path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}
+ - name: Upload Debian package artifact
+ uses: actions/upload-artifact@master
+ if: steps.vars.outputs.DPKG_NAME
+ with:
+ name: ${{ steps.vars.outputs.DPKG_NAME }}
+ path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}
- name: Publish archives and packages
uses: softprops/action-gh-release@v1
if: steps.vars.outputs.DEPLOY