File Exchange is not picking up toolbox file on new releases
4 views (last 30 days)
Show older comments
I've connected File Exchange to my github account and am using it to track releases of a toolbox. My toolbox is packaged and added to the release but File Exchange is not picking it up. It had been working for a few releases before but on one release it didn't connect and I ended up deleting the File Exchange post, giving my toolbox a new uuid, and re-publishing it. It collected the toolbox on the initial release, but I just pushed a new release and the mltbx file is not showing up again. Is there anyway to debug this? I don't see an option to manually upload the toolbox either.
10 Comments
Randy Souza
on 4 Sep 2024
@David Connell - I've updated your File Exchange submission so that the toolbox is now attached.
I believe that I've identified the cause of the problem, though not yet a solution.
As far as I can tell the problem is that GitHub does not provde a way to create a release and attach files to the release (in this case the .mltbx file) at the same time. So, some of the time:
- The GitHub Action that you are using to create releases starts.
- The Action creates the release.
- GitHub sends a "release created" webhook event to File Exchange.
- File Exchange updates your submission with the source code for the new release.
- The Action attaches the .mltbx file to the release
- GitHub does not send webhook events when files are attached to releases, so File Exchange is never notified that the .mltbx file is available.
In most cases, step #5 occurs before step #4, so when File Exchange updates the submission we can "see" the attached .mltbx file. But when it does not happen in that order, it looks like we end up not picking up the toolbox.
I'll continue to investigate and work with GitHub. I'll update this post when I have a more stable solution.
Answers (0)
See Also
Categories
Find more on Historical Contests in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!