From ee80174b63b9ec100d949a859ec3557d1703c182 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Tue, 16 Jun 2020 22:40:07 +0800 Subject: [PATCH] tests: add release.yml for GoReleaser --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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..2947ccf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: release +on: + push: + tags: + - "v*" +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ^1.14 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}