Skip to content

Commit

Permalink
ci: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Oct 4, 2023
1 parent e4d25ad commit e3c980c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ jobs:
export BINARY_NAME="$CCATCTL_PREFIX"$GOOS"_$GOARCH$BINARY_SUFFIX"
go build -o "bin/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./cmd/ccatctl
cd bin
if [ "${{ matrix.goos }}" = "windows" ]; then
zip -j "bin/${CLOUDCAT_PREFIX}${GOOS}_${GOARCH}.zip" "bin/*${GOOS}_${GOARCH}.exe"
zip -j "${CLOUDCAT_PREFIX}${GOOS}_${GOARCH}.zip" "*${GOOS}_${GOARCH}.exe"
else
tar czvf "bin/${CLOUDCAT_PREFIX}${GOOS}_${GOARCH}.tar.gz" -C "bin/" "*${GOOS}_${GOARCH}"
tar czvf "${CLOUDCAT_PREFIX}${GOOS}_${GOARCH}.tar.gz" -C "*${GOOS}_${GOARCH}"
fi
- uses: ncipollo/release-action@v1
Expand Down

0 comments on commit e3c980c

Please sign in to comment.