mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 12:58:26 +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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
|
ARCHIVE_DIR='${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
|
||||||
COPYRIGHT_YEARS="2018 - "$(date "+%Y")
|
|
||||||
# Binary
|
# Binary
|
||||||
cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' "$ARCHIVE_DIR"
|
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 }}'/* ;;
|
*) tar czf '${{ steps.vars.outputs.PKG_NAME }}' '${{ steps.vars.outputs.PKG_BASENAME }}'/* ;;
|
||||||
esac;
|
esac;
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
- name: Debian package
|
||||||
# Debian package
|
shell: bash
|
||||||
if [ -n "${{ steps.vars.outputs.DPKG_NAME }}" ]; then
|
if: steps.vars.outputs.DPKG_NAME
|
||||||
|
run: |
|
||||||
|
COPYRIGHT_YEARS="2018 - "$(date "+%Y")
|
||||||
DPKG_DIR="${{ steps.vars.outputs.STAGING }}/dpkg"
|
DPKG_DIR="${{ steps.vars.outputs.STAGING }}/dpkg"
|
||||||
|
|
||||||
# Binary
|
# Binary
|
||||||
@ -338,7 +339,6 @@ jobs:
|
|||||||
|
|
||||||
# build dpkg
|
# build dpkg
|
||||||
fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
|
fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
|
||||||
fi
|
|
||||||
- name: Upload package artifact
|
- name: Upload package artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user