diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7156cc5 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: "release" +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v1 + with: + go-version: 1.13.x + - uses: actions/checkout@v2 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..fb4f273 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,24 @@ +--- +env: + - GO111MODULE=on + - CGO_ENABLED=0 +before: + hooks: + - go mod tidy +builds: + - binary: go-tpc + id: go-tpc + main: ./cmd/go-tpc/ + goarch: + - amd64 + goos: + - linux + - darwin + +archives: + - files: + - none* + wrap_in_directory: false + +checksum: + name_template: 'checksums.txt'