CICD: Build: Split up into separate 'Debian package' step

Make sure to ignore whitespace changes when diffing.

For #1474
This commit is contained in:
Martin Nordholts 2021-01-10 17:20:19 +01:00 committed by David Peter
parent c5c683f67c
commit 221c9815a5
1 changed files with 50 additions and 50 deletions

View File

@ -231,7 +231,6 @@ jobs:
shell: bash
run: |
ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
COPYRIGHT_YEARS="2018 - "$(date "+%Y")
# Binary
cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "$ARCHIVE_DIR"
@ -255,9 +254,11 @@ jobs:
*) tar czf '${{ steps.vars.outputs.PKG_NAME }}' '${{ steps.vars.outputs.PKG_BASENAME }}'/* ;;
esac;
popd >/dev/null
# Debian package
if [ -n "${{ steps.vars.outputs.DPKG_NAME }}" ]; then
- name: Debian package
shell: bash
if: steps.vars.outputs.DPKG_NAME
run: |
COPYRIGHT_YEARS="2018 - "$(date "+%Y")
DPKG_DIR="${{ steps.vars.outputs.STAGING }}/dpkg"
# Binary
@ -338,7 +339,6 @@ jobs:
# build dpkg
fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
fi
- name: Upload package artifact
uses: actions/upload-artifact@master
with: