Here are some common errors that might happen when releasing to GitHub, and some guidance on how to fix them.
This error essentially means that the file you're trying to upload is already there.
It usually happens for one of these reasons:
Meaning, it says there was an error, but on subsequent tries it replies saying the file is already there.
There isn't much you can do here, except report to GitHub and maybe try to run the release from somewhere else.
I already reported multiple times, but it seems themselves are having a hard time reproducing it.
A common one here is when your archives.name
is not specific enough.
You can run your release locally (e.g. goreleaser release --snapshot
) and
check the ./dist/*.json
files to debug.
This one is easier to fix: make sure you are running GoReleaser only on tags, and only one time per tag.