From bc0505d8f2fc117120f184fe42973c78b8ddaf7a Mon Sep 17 00:00:00 2001 From: xuu Date: Sun, 15 Oct 2023 10:29:54 -0600 Subject: [PATCH] build: use go install --- .gitea/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0fe49d0..8554051 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,8 +22,10 @@ jobs: with: go-version: 1.21.1 - - name: Build - run: go build -ldflags "-s -w" -o ./build/ev ./cmd/ev + - name: Install + run: go install -ldflags "-s -w" go.sour.is/tools/cmd/ev@latest + + - run: mv $GOPATH/bin/ev build/ev - name: Compress uses: https://git.sour.is/actions/ghaction-upx@v2.4.0