Skip to content

Commit

Permalink
feat(cd): include completions and mangen in binary releases (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 22, 2022
1 parent 6c37611 commit 9a070b2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a070b2

Please sign in to comment.