summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2021-08-25 20:30:24 +0300
committerGitHub <noreply@github.com>2021-08-25 17:30:24 +0000
commit19a55d6aebc27a24d8d7511f56a340f576a0526b (patch)
tree86658f2f05fb888b6cbf524267828650b6b16466 /.github/workflows
parentbfbc459c0afcb62bd73eb78472406ace1519790c (diff)
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')
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/release.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4446125..8d15586 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -156,6 +156,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
+
+ - name: Create 'caddy-build'
+ run: mkdir -p caddy-build
+
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 834d303..0145b68 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