EDyO / appu

Automatic Podcast Publisher
MIT License
3 stars 2 forks source link

Fix any failing pipeline #49

Closed ifosch closed 2 years ago

ifosch commented 2 years ago

Last versions released were failing when running the pipelines.

Find and fix the reason.

ifosch commented 2 years ago

I've tried to release a new version (v0.0.1-b11) and it failed to push the built binaries. The output of the job seems to be a 50X GH page:

Uploading build/appu.linux_amd64...
Error: <!DOCTYPE html>
<!--

Hello future GitHubber! I bet you're here to remove those nasty inline styles,
DRY up these templates and make 'em nice and re-usable, right?

Please, don't. https://github.com/styleguide/templates/2.0

-->
<html>
  <head>
    <title>Unicorn! &middot; GitHub</title>
...

I'm not sure if there is something wrong with the GITHUB_TOKEN or with the Action we use for publishing binaries. Considering about trying out other Actions for this, I started looking into testing these without merging PRs for test. I've found https://github.com/nektos/act, which is an interesting tool to mimic GH Actions. I've tried it locally and it worked and, actually, published the built binaries for the release. Now I'm very confused. I would like to try other publishing Actions, but I can't be certain that these working in my locally with act will work for real later. I also see this could be a little bit dramatic if changing the latest built tools. I'm not sure how to proceed from here.

ifosch commented 2 years ago

Now I'm thinking that if the GITHUB_TOKEN secret would be the problem, the docker step in the pipeline should also fail, and it is not. I'll research more on how to test the pipelines out of GH Actions, but I have very little hopes.

ifosch commented 2 years ago

Finally this was about the GITHUB_TOKEN. I'm not sure why or how, but this is not working for uploading the assets to the release. I've created another secret with my PAT which works for it. I've also changed the way this is implemented in the pipeline for an easier way, not depending on third party's actions, but gh CLI, which should be aligned with GH changes 🤞