diff options
| author | Orhun Parmaksız <orhunparmaksiz@gmail.com> | 2021-12-11 02:59:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 23:59:39 +0000 |
| commit | 0abd063e018ecb8851c3a816aa941dd04d594c9e (patch) | |
| tree | e61f6858727989bf7d848d7dab76632e6657b222 /.github/workflows | |
| parent | Update messages in install.sh about the AUR packages (#231) (diff) | |
| download | atuin-0abd063e018ecb8851c3a816aa941dd04d594c9e.zip | |
Support generating shell completions (#235)
* Add gen-completions subcommand for generating shell completions
* Update documentation about generating shell completions
* Include the shell completions in release tarball
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8784435c..7298ce2e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -116,7 +116,7 @@ jobs: PKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/package" ARCHIVE_DIR="${PKG_STAGING}/${PKG_BASENAME}/" mkdir -p "${ARCHIVE_DIR}" - mkdir -p "${ARCHIVE_DIR}/autocomplete" + mkdir -p "${ARCHIVE_DIR}/completions" # Binary cp "${{ steps.strip.outputs.BIN_PATH }}" "$ARCHIVE_DIR" @@ -124,6 +124,11 @@ jobs: # README, LICENSE and CHANGELOG files cp "README.md" "LICENSE" "$ARCHIVE_DIR" + # Shell completions + for sh in 'bash' 'fish' 'zsh'; do + "${{ steps.strip.outputs.BIN_PATH }}" gen-completions -s $sh -o "${ARCHIVE_DIR}/completions" + done + # base compressed package pushd "${PKG_STAGING}/" >/dev/null case ${{ matrix.job.target }} in |
