mirror of
https://github.com/eza-community/eza
synced 2024-09-29 20:54:59 +00:00
feat: generate completion/manpage tarballs on release
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
8afb5cc285
commit
c0df8ecd84
19
Justfile
19
Justfile
|
@ -120,12 +120,14 @@ release:
|
|||
git tag -d "v{{new_version}}" || echo "tag not found, creating";
|
||||
git tag --sign -a "v{{new_version}}" -m "auto generated by the justfile for eza v$(convco version)"
|
||||
just cross
|
||||
just mangen
|
||||
just completions
|
||||
mkdir -p ./target/"release-notes-$(convco version)"
|
||||
git cliff -t "v$(convco version)" --current > ./target/"release-notes-$(convco version)/RELEASE.md"
|
||||
just checksum >> ./target/"release-notes-$(convco version)/RELEASE.md"
|
||||
|
||||
git push origin "v{{new_version}}"
|
||||
gh release create "v$(convco version)" --target "$(git rev-parse HEAD)" --title "eza v$(convco version)" -d -F ./target/"release-notes-$(convco version)/RELEASE.md" ./target/"bin-$(convco version)"/*
|
||||
gh release create "v$(convco version)" --target "$(git rev-parse HEAD)" --title "eza v$(convco version)" -d -F ./target/"release-notes-$(convco version)/RELEASE.md" ./target/"bin-$(convco version)"/* ./target/"man-$(convco version).tar.gz" ./target/"completions-$(convco version).tar.gz"
|
||||
|
||||
#----------------#
|
||||
# binaries #
|
||||
|
@ -222,6 +224,21 @@ alias c := cross
|
|||
# Generate Checksums
|
||||
# TODO: moved to gh-release just checksum
|
||||
|
||||
@mangen:
|
||||
# Setup Output Directory
|
||||
mkdir -p ./target/"man-$(convco version)"
|
||||
pandoc --standalone -f markdown -t man man/eza.1.md > ./target/"man-$(convco version)"/eza.1
|
||||
pandoc --standalone -f markdown -t man man/eza_colors.5.md > ./target/"man-$(convco version)"/eza_colors.5
|
||||
pandoc --standalone -f markdown -t man man/eza_colors-explanation.5.md > ./target/"man-$(convco version)"/eza_colors-explanation.5
|
||||
tar czvf ./target/"man-$(convco version)".tar.gz ./target/"man-$(convco version)"
|
||||
|
||||
@completions:
|
||||
# Setup Output Directory
|
||||
mkdir -p ./target/"completions-$(convco version)"
|
||||
cp completions/*/* ./target/"completions-$(convco version)"/
|
||||
tar czvf ./target/"completions-$(convco version)".tar.gz ./target/"completions-$(convco version)"
|
||||
|
||||
|
||||
#---------------------#
|
||||
# Integration testing #
|
||||
#---------------------#
|
||||
|
|
Loading…
Reference in a new issue