[Bug report] Unable to upload .github/workflows folder for custom actions #2025
Replies: 1 comment 1 reply
-
Publii will not wipe a repository and reupload the entire site under normal conditions. Publii creates a file that contains a hashed version of each file. If the hash on future synchronizations matched the hash in the hash file the existing file is not uploaded again. It is likely that your GitHub actions are touching each file causing every file to be invalidated and therefore resynchronized. I have not tested it, but I also suspect that the synchronization process will remove any file from the repository that is not in the local copy of the site generated by Publii. Perhaps there is a way to do this with two different repositories. One which Publii synchronizes to and the second which is your real website. You could cause your first github action to copy the files from the Publii destination to your real website and then apply your other actions. |
Beta Was this translation helpful? Give feedback.
-
Operating system
macOS 15.3
Publii version
Version 0.46.3 (0.46.3)
Issue type
Application
Bug description
I'd like to use github actions on the publii github pages site. However currently Publii wipes the entire repo every time it syncs which means the .github/workflows is deleted each time. The actions are needed for other portions of my site that include pages/applications that aren't handled by Publii.
Issues:
.
s in folder names, reporting an error on sync claiming a404
The steps I attempted to work around this (and are pretty close):
publii
that Publii publishes topublii
branch, save it to a folder then publish that folder via github actions (instead of running the default static site generation where it's compiling jekkyl and such, unnecessary)Unfortunately due to the issues above this still does not work automatically. It does work if I have the
workflow_dispatch
on that action which I can trigger manually after syncing up PubliiSteps to reproduce
.github/workflows/some-action.yml
to the/inputs/root-files
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions