diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 77e64de..2d5d666 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -1,4 +1,4 @@ -name: Go +name: Build on: push: @@ -13,18 +13,19 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.23.4' + go-version: stable - name: Build - run: go build -v ./... + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: build --clean --snapshot - - name: Test - run: go test -v ./... - - - name: Upload binary as artifact + - name: Upload binares as artifact uses: actions/upload-artifact@v3 with: name: licensmith - path: licensmith + path: dist/