diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0fe49d0..f13ccf5 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,9 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - fetch-tags: true - run: apt-get update && apt-get -y install ansible @@ -22,8 +19,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 $(shell go env GOPATH)/bin/ev build/ev - name: Compress uses: https://git.sour.is/actions/ghaction-upx@v2.4.0