diff options
author | Mohammed Al Sahaf <msaa1990@gmail.com> | 2022-09-02 06:39:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 23:39:18 -0400 |
commit | aefd821ae0b966c8f8599eaa59dffe1b0fc51740 (patch) | |
tree | 4c26f7d8d7f25fba9145d945b2059c60e3410d2c | |
parent | d062fb40201b321c492da9b50ab8d107e0bb3c5f (diff) |
dist: deb package manpages and bash completion scripts (#5007)
-rw-r--r-- | .goreleaser.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml index 0065d40..f0e2615 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,7 +14,11 @@ before: # run `go mod tidy`. The `/bin/sh -c '...'` is because goreleaser can't find cd in PATH without shell invocation. - /bin/sh -c 'cd ./caddy-build && go mod tidy' - git clone --depth 1 https://github.com/caddyserver/dist caddy-dist + - mkdir -p caddy-dist/man - go mod download + - go run cmd/caddy/main.go manpage --directory ./caddy-dist/man + - gzip -r ./caddy-dist/man/ + - /bin/sh -c 'go run cmd/caddy/main.go completion bash > ./caddy-dist/scripts/bash-completion' builds: - env: @@ -96,13 +100,16 @@ nfpms: - src: ./caddy-dist/welcome/index.html dst: /usr/share/caddy/index.html - - src: ./caddy-dist/scripts/completions/bash-completion + - src: ./caddy-dist/scripts/bash-completion dst: /etc/bash_completion.d/caddy - src: ./caddy-dist/config/Caddyfile dst: /etc/caddy/Caddyfile type: config + - src: ./caddy-dist/man/* + dst: /usr/share/man/man8/ + scripts: postinstall: ./caddy-dist/scripts/postinstall.sh preremove: ./caddy-dist/scripts/preremove.sh |