Skip to content

Commit

Permalink
Update step
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed May 30, 2023
1 parent ea72aa1 commit 1816f0e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.3
go-version: stable

- name: Get version and add it to GITHUB_ENV
run: make getActionVersion
Expand Down Expand Up @@ -48,14 +47,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

- run: git fetch --force --tags

- name: Run GoReleaser
if: env.TAG_EXISTS == 'false'
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
Expand Down

0 comments on commit 1816f0e

Please sign in to comment.