From 05b14913abe2de17390e79a838e496bbaf8a6d17 Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Sun, 2 Jan 2022 17:21:52 -0600 Subject: [PATCH] different release action --- .github/workflows/publish_release.yml | 41 ++++++++++++--------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index fd47951..b101ec0 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -1,30 +1,25 @@ -name: goreleaser +name: Publish Release on: - pull_request: push: + # tags: + # - 'v*' jobs: - goreleaser: + build: 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.17.5 - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - # either 'goreleaser' (default) or 'goreleaser-pro' - distribution: goreleaser - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.5 + - name: Create a Release + uses: elgohr/Github-Release-Action@master + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + with: + args: MyReleaseMessage