diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..a35247b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +--- +name: Release +on: + push: + tags: [v*] +permissions: + contents: write # To create releases +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - uses: actions/setup-go@v5.0.0 + with: + go-version: '1.21.5' + - uses: goreleaser/goreleaser-action@v5.0.0 + with: + version: v1.23.0 + args: release --clean + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 5466578..476513b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,4 @@ project_name: minimock -before: - hooks: - - make all builds: - main: ./cmd/minimock/