mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 20:38:44 +00:00
CICD: Build: Split up into separate 'Debian package' step
Make sure to ignore whitespace changes when diffing. For #1474
This commit is contained in:
parent
c5c683f67c
commit
221c9815a5
10
.github/workflows/CICD.yml
vendored
10
.github/workflows/CICD.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user