From 712bc4426ad2fce21180f62d8c3f158922c2c350 Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Tue, 28 Sep 2021 08:25:33 -0400 Subject: [PATCH] Added release config for tag->release --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..a29a748 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +# From: https://goreleaser.com/ci/actions/#usage +name: release + +env: + GO111MODULE: on + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2.1.4 + with: + go-version: 1.17 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2.7.0 + with: + distribution: goreleaser + version: latest + args: release --rm-dist --debug + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}