fix(release): Add man page to .deb distribution (#1455)

This commit is contained in:
Gideon
2025-11-10 18:12:49 +01:00
committed by GitHub
parent 051784ac0d
commit bec7edf1fc
2 changed files with 5 additions and 3 deletions

View File

@@ -232,9 +232,10 @@ jobs:
mkdir -p "$dir" mkdir -p "$dir"
echo "DEPLOY_DIR=$dir" >> $GITHUB_ENV echo "DEPLOY_DIR=$dir" >> $GITHUB_ENV
- name: Generate shell completions - name: Generate man page and shell completions
shell: bash shell: bash
run: | run: |
"$BIN" --gen-manpage > "$DEPLOY_DIR/topgrade.1"
"$BIN" --gen-completion bash > "$DEPLOY_DIR/topgrade.bash" "$BIN" --gen-completion bash > "$DEPLOY_DIR/topgrade.bash"
"$BIN" --gen-completion fish > "$DEPLOY_DIR/topgrade.fish" "$BIN" --gen-completion fish > "$DEPLOY_DIR/topgrade.fish"
"$BIN" --gen-completion zsh > "$DEPLOY_DIR/_topgrade" "$BIN" --gen-completion zsh > "$DEPLOY_DIR/_topgrade"

View File

@@ -68,8 +68,9 @@ default-features = true
assets = [ assets = [
["target/release/topgrade", "usr/bin/", "755"], ["target/release/topgrade", "usr/bin/", "755"],
["README.md", "usr/share/doc/topgrade/README.md", "644"], ["README.md", "usr/share/doc/topgrade/README.md", "644"],
# The man page is automatically generated by topgrade's build process in CI, so # The man page and shell completions are automatically generated by topgrade's build process in CI,
# these files aren't actually committed. # so these files aren't actually committed.
["deployment/deb/topgrade.1", "usr/share/man/man1/topgrade.1", "644"],
["deployment/deb/topgrade.bash", "usr/share/bash-completion/completions/topgrade", "644"], ["deployment/deb/topgrade.bash", "usr/share/bash-completion/completions/topgrade", "644"],
["deployment/deb/topgrade.fish", "usr/share/fish/vendor_completions.d/topgrade.fish", "644"], ["deployment/deb/topgrade.fish", "usr/share/fish/vendor_completions.d/topgrade.fish", "644"],
["deployment/deb/_topgrade", "usr/share/zsh/vendor-completions/", "644"], ["deployment/deb/_topgrade", "usr/share/zsh/vendor-completions/", "644"],