diff --git a/.github/workflows/build-artifacts.yaml b/.github/workflows/build-artifacts.yaml index a110306..9968dbf 100644 --- a/.github/workflows/build-artifacts.yaml +++ b/.github/workflows/build-artifacts.yaml @@ -2,8 +2,8 @@ name: Build and release artifacts on: release: - tags: - - 'v*' + types: [published] + permissions: contents: write jobs: @@ -20,7 +20,7 @@ jobs: cache: true - uses: goreleaser/goreleaser-action@v4 # run goreleaser with: - version: latest - args: release --rm-dist + version: '~> v2' + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 40d7fb1..458069f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + project_name: mmt builds: - env: [CGO_ENABLED=0]