1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-19 03:08:30 +03:00

feat(cd): include completions and mangen in binary releases (#115)

This commit is contained in:
Orhun Parmaksız 2022-12-22 16:11:00 +03:00
parent 6c37611e16
commit 9a070b248d
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -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