From c9ec00b9755458c79c9b3f5acd482a9dd47ecf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Wed, 18 Oct 2023 17:45:47 +0200 Subject: [PATCH] Bump Former-commit-id: d044cbb1118c6a46e101d127bc914a6868600c21 [formerly 81ebab557abb1346b856105cf45594b827cb96e0] [formerly 310a36d58ac56a0caf13a43bb6b4bd130afbcd9f [formerly 35bc79eb615d627824b6ff1d87b7ea2ef9be58e8]] Former-commit-id: 16a9ca0665cecd7dc2e4133bb478ffe65683408c [formerly 18e28a2de9681679d2a8550785a2eb88f6bc6452] Former-commit-id: 70a437791f593ca56694c17867ba8004fcf48138 Former-commit-id: 46ad8a72d89a9c526975afb3f5c1189a2fc9fe90 Former-commit-id: 5414411d23e6ecbb79a5466c29d3073835dba1a2 Former-commit-id: 69de535552b06cb18e69ef7f6028e437b87827a1 [formerly 72586922fbaf8525a881e155e925d47a7601b27c] Former-commit-id: c2a7019a3f2d46f69179549f317ca407b9c6dc6f --- .github/workflows/release.yaml | 2 +- .goreleaser_hook.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 94c32b8..49e24ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -115,7 +115,7 @@ jobs: path: artifacts - name: list artifacts - run: ls * ; ls artifacts/* + run: ls artifacts/* # Goreleaser - name: Set up Go diff --git a/.goreleaser_hook.sh b/.goreleaser_hook.sh index f3b43bf..f19f71c 100755 --- a/.goreleaser_hook.sh +++ b/.goreleaser_hook.sh @@ -7,6 +7,8 @@ go_arch=$1 go_os=$2 project_name=$3 +rm -rf dist/* + case $go_arch in amd64) rust_arch='x86_64' ;; arm64) rust_arch='aarch64' ;; @@ -21,5 +23,5 @@ case $go_os in esac # Find artifacts and uncompress in the corresponding directory -find artifacts -type f -name "*${rust_arch}*${rust_os}*" -exec unzip -d dist/${project_name}_${go_os}_${go_arch} {} \; +find artifacts -type f -wholename "*${rust_arch}*${rust_os}*" -exec cp {} dist/${project_name}_${go_os}_${go_arch} \;