Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
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.
Mohammed Al Sahaf committed
Aug 25, 2021 at 20:30 UTC
19a55d6aebc27a24d8d7511f56a340f576a0526b
2 files changed
+8
.github/workflows/ci.yml
+4
@@ -156,6 +156,10 @@ jobs:
156
steps:
157
- name: checkout
158
uses: actions/checkout@v2
159
+
160
+ - name: Create 'caddy-build'
161
+ run: mkdir -p caddy-build
162
+
163
- uses: goreleaser/goreleaser-action@v2
164
with:
165
version: latest
.github/workflows/release.yml
+4
@@ -88,6 +88,10 @@ jobs:
88
restore-keys: |
89
${{ runner.os }}-go${{ matrix.go }}-release
90
91
+ - name: Create the 'caddy-build' dir for GoReleaser
92
+ run: |
93
+ mkdir -p caddy-build
94
+
95
# GoReleaser will take care of publishing those artifacts into the release
96
- name: Run GoReleaser
97
uses: goreleaser/goreleaser-action@v2