From 5211ce1c7b36e9a7502ab1c7696f6d011992aef5 Mon Sep 17 00:00:00 2001 From: Evo <85353424+EvolutionX-10@users.noreply.github.com> Date: Thu, 2 Jun 2022 10:09:29 +0530 Subject: [PATCH] ci(release): tryna fix release ci (#34) * ci(release): try to fix the workflow * chore: add actions branch * chore: hmm * chore(release): yeah --- .github/workflows/release.yml | 10 +++------- .goreleaser.yml | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72b8c64..10c86b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,9 +5,7 @@ on: branches: - main - go_rewrite - pull_request_target: - branches: - - main + - actions permissions: contents: write @@ -28,14 +26,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.18 + id: go + - 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 }} - # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution - # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/.goreleaser.yml b/.goreleaser.yml index e9e5184..7cfc3b2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,3 +6,4 @@ builds: - linux goarch: - amd64 + main: ./cmd