Closed thinkyhead closed 6 months ago
Ok, so that deploy action did go through without an error. I'm doing a couple more with small changes to see if they get published properly or not…. If these tests pass then I'm going to conclude that sometimes this spurious Ruby error is causing it to fail, and I was mistaking this for a bad deployment.
Who knows why, but this error cropped up once again! https://github.com/MarlinFirmware/MarlinDocumentation/actions
The next deploy action did not throw an error. But it also didn't publish the HEAD. So, attempting another deploy…
NOPE! Action succeeds but the site doesn't change.
Two tries, and same result. The site deploys, and the gh-pages
branch is even updated, but the contents of gh-pages
are stale. Very strange.
I now have the action working, but when it deploys the site it is not building the most up to date version of the site (i.e.,
master:HEAD
). Instead it checks out the branch from some earlier point in time.I have not yet determined what commit it is deploying, exactly. I tried adding an extra commit and triggering the workflow to see if it was simply building from the previous commit, but this was not the case.
How is it possible that an older version of the 'master' branch is being checked out and published? Is there something that GitHub may be caching that is throwing us off?
For testing I changed the workflow to trigger on a branch named 'deploy' instead, but this didn't seem to help. I'm doing some testing now to see if 'deploy' gets published or if 'master' gets published when the action is triggered by a push to the 'deploy' branch.
If this test is inconclusive I will follow up soon by copying and hosting the action within the repo instead, and then I can add logging to see what's amiss.
Darn. On the first test I got this spurious error complaining about zeitwerk needing a newer Ruby. That shows up once in a while, but I don't know why. Possibly these runners are not all alike. Let's see if I just do another push…
I will follow up with more information as it progresses.