diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6f4dcf4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: release + +on: + push: + tags: + - '*' + +jobs: + release: + name: Goreleaser + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.13 + - name: Checkout + uses: actions/checkout@v1 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GO111MODULE: on + diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..da84d1f --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,24 @@ +env: +- GO111MODULE=on +before: + hooks: + - go mod tidy +builds: +- binary: bump +archives: +- replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'