diff options
author | Mohammed Al Sahaf <[email protected]> | 2021-08-25 20:30:24 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-25 17:30:24 +0000 |
commit | 19a55d6aebc27a24d8d7511f56a340f576a0526b (patch) | |
tree | 86658f2f05fb888b6cbf524267828650b6b16466 /.github/workflows/release.yml | |
parent | bfbc459c0afcb62bd73eb78472406ace1519790c (diff) | |
download | caddy-19a55d6aebc27a24d8d7511f56a340f576a0526b.tar.gz caddy-19a55d6aebc27a24d8d7511f56a340f576a0526b.zip |
chore: promote creating 'caddy-build' to the release action (#4306)
The commit goreleaser/goreleaser@013bd69126459125694d7cb2c434dd9ba63e5a5b of GoReleaser is now checking the `go version` prior to executing any of the pre-hooks, which involves setting the current dir of the command to the `build.dir` of the build config. At the time of version check, the buil dir does not exist. It's created in the pre-hook. As a workaround, the build-dir is now created in the Github Action prior to executing goreleaser action.
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 834d30346..0145b6843 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,10 @@ jobs: restore-keys: | ${{ runner.os }}-go${{ matrix.go }}-release + - name: Create the 'caddy-build' dir for GoReleaser + run: | + mkdir -p caddy-build + # GoReleaser will take care of publishing those artifacts into the release - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 |