From 7984af2172f8d465eb88865fb9a7b01c76965e18 Mon Sep 17 00:00:00 2001 From: Olexander Hofman Date: Tue, 11 Jun 2024 13:14:59 +0100 Subject: [PATCH] fix ci/cd release --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e745922..8d9b199 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,15 +74,17 @@ jobs: - if: matrix.platform == 'linux' name: Build the binary run: | + echo {{ runner.os }} + os=$(echo {{ runner.os }} | tr '[:upper:]' '[:lower:]') make build-rust-release - git add -f ./bin/linux-amd64/mamorurs-cli - git commit -m "Add 'linux-amd64' binary" + git add -f ./bin/${os}/mamorurs-cli + git commit -m "Add '${os}' binary" - if: matrix.platform == 'darwin' name: Build the binary run: | make build-rust-release-macos-aarch64 - git add -f /bin/darwin-arm64/mamorurs-cli + git add -f ./bin/darwin-arm64/mamorurs-cli git commit -m "Add 'darwin-arm64' binary" - if: matrix.platform == 'linux'