From 0c40ca6a36d50c577b7fc32cd61b2996d3eee7e6 Mon Sep 17 00:00:00 2001 From: gmeghnag Date: Mon, 12 Aug 2024 11:37:59 +0200 Subject: [PATCH] modified gh action --- .github/workflows/build.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0edf80c..be23478 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,8 +24,7 @@ jobs: BINARY_NAME=$( echo ${GITHUB_REPOSITORY} | egrep -io "[^/]+$") echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV HASH=$(git log -n1 --pretty=format:%h) - echo ${TAG} ${HASH} \ - && env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ${BINARY_NAME} \ + env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ${BINARY_NAME} \ && cp ${BINARY_NAME} ${BINARY_NAME}_Linux_x86_64 && tar -cvzf ${BINARY_NAME}_Linux_x86_64.tar.gz ${BINARY_NAME} && rm -rf ${BINARY_NAME} \ && env GOOS=linux CGO_ENABLED=0 GOARCH=arm64 go build -o ${BINARY_NAME} \ && tar -cvzf ${BINARY_NAME}_Linux_arm64.tar.gz ${BINARY_NAME} && cp ${BINARY_NAME}_Linux_arm64.tar.gz ${BINARY_NAME}_Linux_aarch64.tar.gz && rm -rf ${BINARY_NAME} \