diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..72561ca2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: read + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version-file: 'go.mod' + cache: true + - uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..7a147040 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,8 @@ +project_name: go-sync +before: + hooks: + - go mod tidy +builds: + - skip: true +changelog: + sort: asc diff --git a/README.md b/README.md index add5b4c7..5f716d6e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ _* Doesn't have to be people._ ## Installation ```shell -go get github.com/ovotech/go-sync +go get github.com/ovotech/go-sync@latest ``` You're ready to Go Sync 🎉