Skip to content

Commit 2dfc2f9

Browse files
oech3oech3
authored andcommitted
Upload uudoc
1 parent 4db2d24 commit 2dfc2f9

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/CICD.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,22 @@ jobs:
829829
if: matrix.job.skip-package != true
830830
shell: bash
831831
run: |
832-
## Package artifact(s)
833-
# binary
832+
## Package artifact(s)
833+
# manpages, completions, and uudoc (if exist)
834+
cp 'target/${{ matrix.job.target }}/release/uudoc${{ steps.vars.outputs.EXE_suffix }}' '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/' && \
835+
(mkdir -p '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/'{man/man1,bash-completion/completions,fish/vendor_completions.d,zsh/site-functions,elvish/lib,powershell}
836+
for binary in $(./target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }} --list|grep -v -E '^(\[)$');do
837+
./target/${{ matrix.job.target }}/release/uudoc manpage $binary > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/man/man1/${binary}.1
838+
./target/${{ matrix.job.target }}/release/uudoc completion $binary bash > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/bash-completion/completions/${binary}.bash
839+
./target/${{ matrix.job.target }}/release/uudoc completion $binary fish > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/fish/vendor_completions.d/${binary}.fish
840+
./target/${{ matrix.job.target }}/release/uudoc completion $binary zsh > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/zsh/site-functions/_${binary}.bash
841+
./target/${{ matrix.job.target }}/release/uudoc completion $binary elvish > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/elvish/lib/${binary}.elv
842+
./target/${{ matrix.job.target }}/release/uudoc completion $binary powershell > ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/share/powershell/${binary}.ps
843+
done) || :
844+
# coreutils
834845
cp 'target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
835846
# `strip` binary (if needed)
836-
if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}' ; fi
847+
[ -n "${{ steps.vars.outputs.STRIP }}" ] && "${{ steps.vars.outputs.STRIP }}" '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'*
837848
# README and LICENSE
838849
# * spell-checker:ignore EADME ICENSE
839850
(shopt -s nullglob; for f in [R]"EADME"{,.*}; do cp $f '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/' ; done)

0 commit comments

Comments
 (0)