Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitHub CI/CD workflow to generate and release man pages #1365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alberti42
Copy link

Thank you for the amazing utility.

I wanted to be able to install tig directly from your GitHub repo, but I wanted to install on all my linux machines asciidoc to generate the man pages. Thus, I added a GitHub CI/CD workflow that generates the man pages from the asciidoc and then release them automatically. This way, I can install tig directly using zinit.

You do not need to understand the code below if you never worked with zinit. It is just to give you an idea how you can install tig directly. The instruction dl downloads the man pages from the GitHub release page.

zinit ice \
  binary \
  depth=1 \
  wait \
  lucid \
  dl"https://github.com/alberti42/fork-tig/releases/download/latest-man-pages/tig.1 -> $ZINIT[MAN_DIR]/man1/tig.1;
  https://github.com/alberti42/fork-tig/releases/download/latest-man-pages/tigmanual.7 -> $ZINIT[MAN_DIR]/man7/tigmanual.7;
  https://github.com/alberti42/fork-tig/releases/download/latest-man-pages/tigrc.5 -> $ZINIT[MAN_DIR]/man5/tigrc.5;" \
  make \
  id-as'jonas/tig' \
  lbin'src/tig -> tig' \
  nocompile
zinit light @alberti42/fork-tig

I believe other people can find other useful applications of the automatically released man pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant