From 4c77b2103c090c979474fb5256f2af0c009ed39e Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Mon, 28 Oct 2019 18:58:15 +0100 Subject: [PATCH] Add goreleaser And github action on tag --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ .goreleaser.yml | 21 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .goreleaser.yml 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..033a3d0 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,21 @@ +env: +- GO111MODULE=on +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:'