From 1771c75af4b9336461d39447e4c5386ea8576e7b Mon Sep 17 00:00:00 2001 From: Shai Nagar Date: Tue, 21 Sep 2021 22:53:39 +0300 Subject: [PATCH] fixed goreleaser trigger to work with drafter --- .github/workflows/go-releaser.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml index a499515..d405487 100644 --- a/.github/workflows/go-releaser.yml +++ b/.github/workflows/go-releaser.yml @@ -3,23 +3,25 @@ name: GoReleaser on: release: types: - - created + - published jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - - name: Set up Go + - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.17 - - - name: Run GoReleaser + + - name: Build + # this generates up-to-date completion scripts in the build directory + run: make build + + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser