From 1d4cee11b7c1b492ada4d9607c882a67c782715a Mon Sep 17 00:00:00 2001 From: chris48s Date: Tue, 4 Aug 2020 20:26:03 +0100 Subject: [PATCH] include changelog in package in line with debian changelog/release notes guidance https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes resolves changelog-file-missing-in-native-package https://lintian.debian.org/tags/changelog-file-missing-in-native-package.html --- .github/workflows/CICD.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 7643aa5e..601180aa 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -279,8 +279,8 @@ jobs: # Man page cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/manual/bat.1 "$ARCHIVE_DIR" - # README and LICENSE files - cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "$ARCHIVE_DIR" + # README, LICENSE and CHANGELOG files + cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "CHANGELOG.md" "$ARCHIVE_DIR" # Autocompletion files cp 'target/${{ matrix.job.target }}/release/build/${{ env.PROJECT_NAME }}'-*/out/assets/completions/bat.fish "$ARCHIVE_DIR/autocomplete/${{ env.PROJECT_NAME }}.fish" @@ -312,6 +312,8 @@ jobs: install -Dm644 "README.md" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/README.md" install -Dm644 "LICENSE-MIT" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/LICENSE-MIT" install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/LICENSE-APACHE" + install -Dm644 "CHANGELOG.md" "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/changelog" + gzip -n --best "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/changelog" cat > "${DPKG_DIR}/usr/share/doc/${{ env.PROJECT_NAME }}/copyright" <