diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9d765019a..ca0aa2e0e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,6 @@ jobs: run: | sudo apt-get install rhash -y go install github.com/goreleaser/goreleaser/v2@latest - mkdir -p build - cp yq.1 build/yq.1 ./scripts/xcompile.sh - name: Release diff --git a/scripts/xcompile.sh b/scripts/xcompile.sh index 41847eaf2d..8009e13586 100755 --- a/scripts/xcompile.sh +++ b/scripts/xcompile.sh @@ -8,8 +8,12 @@ if [ -z "$CI" ]; then GORELEASER+=" --snapshot" fi +mkdir -p build + $GORELEASER +cp yq.1 build/yq.1 + cd build # Remove artifacts from goreleaser