From 7764696e8af7d199e2e1f4982d40e15823b06cf8 Mon Sep 17 00:00:00 2001 From: ohkinozomu Date: Mon, 16 Aug 2021 08:53:43 +0900 Subject: [PATCH] Add goreleaser --- .github/workflows/goreleaser.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/goreleaser.yaml diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml new file mode 100644 index 0000000..34fe041 --- /dev/null +++ b/.github/workflows/goreleaser.yaml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + release: + types: [published] + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file