From 2c05d33782ecec3576cde2eada83dbbc9f550773 Mon Sep 17 00:00:00 2001 From: Garbrandt Date: Wed, 31 Mar 2021 21:52:16 +0800 Subject: [PATCH] add goreleaser --- .github/workflows/release.yml | 7 +++++-- .goreleaser.yml | 2 +- {doc => docs}/TODO.MD | 0 3 files changed, 6 insertions(+), 3 deletions(-) rename {doc => docs}/TODO.MD (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edd58a8..116533b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release -on: [push] +on: + create: + tags: + - v* jobs: release: name: Release on GitHub @@ -20,4 +23,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} with: - args: release --snapshot --rm-dist + args: release --rm-dist diff --git a/.goreleaser.yml b/.goreleaser.yml index ce5f3e7..6fef861 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -23,7 +23,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .ShortCommit }}-next" + name_template: "{{ .Tag }}-next" changelog: sort: asc filters: diff --git a/doc/TODO.MD b/docs/TODO.MD similarity index 100% rename from doc/TODO.MD rename to docs/TODO.MD