summaryrefslogtreecommitdiffhomepage
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2022-10-04 17:03:10 +0300
committerGitHub <[email protected]>2022-10-04 17:03:10 +0300
commitc28cd29fe7ffc4b7f7bebb16fe721f25abab2446 (patch)
treef6c49715ab47e321a2c9122be9679db8c6eb8093 /.goreleaser.yml
parentda24f57daca431704f953500386758eae2b8de1b (diff)
downloadcaddy-c28cd29fe7ffc4b7f7bebb16fe721f25abab2446.tar.gz
caddy-c28cd29fe7ffc4b7f7bebb16fe721f25abab2446.zip
ci: enhance the CI/CD flow (#5118)
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index bfd3fd43a..dafcce09a 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -4,6 +4,7 @@ before:
# This is so we can run goreleaser on tag without Git complaining of being dirty. The main.go in cmd/caddy directory
# cannot be built within that directory due to changes necessary for the build causing Git to be dirty, which
# subsequently causes gorleaser to refuse running.
+ - rm -rf caddy-build caddy-dist
- mkdir -p caddy-build
- cp cmd/caddy/main.go caddy-build/main.go
- /bin/sh -c 'cd ./caddy-build && go mod init caddy'