Skip to content

Commit

Permalink
🌱 fix error faced during release process by ensuring dist directory i…
Browse files Browse the repository at this point in the history
…s cleaned before running GoReleaser (#4040)

fix error faced during release process by ensuring dist directory is cleaned before running GoReleaser
  • Loading branch information
camilamacedo86 authored Jul 23, 2024
1 parent 73848f8 commit e4beb77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: Clean dist directory
run: rm -rf dist || true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: v2.1.0
args: release -f ./build/.goreleaser.yml --rm-dist
args: release -f ./build/.goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
Expand Down

0 comments on commit e4beb77

Please sign in to comment.