Gitea scm releases Errors - json: cannot unmarshal array into Go value of type gitea.Release #4768
-
Thank you in advance. I'm trying to make my first gorelease up to GitTea. When running I can't seem to work out what array it is talking about that it cannot unmarshal. I have tried the same .goreleaser.yaml against github and it all works fine. I attach mu goreleaser.yaml if of use: `version: 1 before: builds:
changelog: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ok so by creating an actual release on Gittea (new to gittea but would expect goreleaser to do this), the above message goes array to be replaced by 'error=scm releases: failed to publish artifacts: failed to upload LiquiBaseApp_Linux_arm64.tar.gz after 10 tries: json: cannot unmarshal array into Go value of type gitea.Attachment |
Beta Was this translation helpful? Give feedback.
-
OK chasing down permissions on the TOKEN (required extrat) It then lead me to run the actual POST by curl. Root cause was http in the gitea api url where as I run https only. Change that and I don't even need to create the release on gittea before hand. Closing this question as answered. |
Beta Was this translation helpful? Give feedback.
OK chasing down permissions on the TOKEN (required extrat) It then lead me to run the actual POST by curl. Root cause was http in the gitea api url where as I run https only. Change that and I don't even need to create the release on gittea before hand.
Closing this question as answered.