From 97499eb6bc9715e56fd9a0c5ee74abadb6c9de5b Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Mon, 9 Sep 2019 16:25:05 +1000 Subject: [PATCH] goreleaser github action --- .github/workflows/release.yml | 19 +++++++++++++++++++ .goreleaser.yml | 10 ++++------ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eefb3bd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +on: + push: + tags: + - "v*" +name: CI +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@master + - name: goreleaser + uses: docker://goreleaser/goreleaser:latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: release + if: success() diff --git a/.goreleaser.yml b/.goreleaser.yml index a254281..bcc945c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,9 +4,7 @@ builds: goos: - linux - darwin - - freebsd - windows - - android goarch: - 386 - amd64 @@ -15,10 +13,10 @@ builds: goarm: - 6 - 7 -checksum: - name_template: "checksums.txt" -snapshot: - name_template: "{{ .Tag }}-next" +archives: + - format: gz + files: + - none* changelog: sort: asc filters: