From 9a070b248d4ae0b58c9463f0627c87ca647c3023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Thu, 22 Dec 2022 16:11:00 +0300 Subject: [PATCH] feat(cd): include completions and mangen in binary releases (#115) --- .github/workflows/cd.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5cc086f98c..48bdd59ec8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -97,11 +97,12 @@ jobs: cp {LICENSE,README.md,CHANGELOG.md} release/ OUT_DIR=release/completions/ cargo run --release --bin git-cliff-completions OUT_DIR=release/man/ cargo run --release --bin git-cliff-mangen - if [ "${{ matrix.OS }}" = "windows-2022" ]; then - cp target/${{ matrix.TARGET }}/release/git-cliff.exe release/ - else - cp target/${{ matrix.TARGET }}/release/git-cliff release/ - fi + for bin in 'git-cliff' 'git-cliff-completions' 'git-cliff-mangen'; do + if [ "${{ matrix.OS }}" = "windows-2022" ]; then + bin="${bin}.exe" + fi + cp "target/${{ matrix.TARGET }}/release/${bin}" release/ + done mv release/ git-cliff-${{ env.RELEASE_VERSION }}/ - name: Create release artifacts shell: bash