These are a set of python scripts to use with GitHub Actions to publish Paligo content. Used in combination with GitHub Pages, these scripts allow you to push changes from Paligo that are automatically updated in the live version of the documentation.
You must first connect Paligo to GitHub in order to use these scripts.
- Download the contents of this repository (Code > Download ZIP).
- Copy the scripts into the root folder of the repository where Paligo will insert the .zip file.
- Edit each of the three scripts, replacing "{folder-name}" with the output name from the .zip file generated by Paligo when you publish to GitHub.
- Copy the unzip-util.yml file into the root folder of the repository.
- Save and push the changes.
- Setup GitHub Pages.
- In GitHub, go to Settings > Pages.
- Select a source and save.
- Setup GitHub Actions.
- In GitHub, go to Actions > set up a workflow yourself.
- Copy the contents of the unzip-util.yml folder into the editor and commit the changes. This will produce a failed build, but that's expected. You haven't pushed the content from Paligo yet.
- Trigger a build in Paligo.
- Paligo pushes the .zip file to your GitHub repository.
- GitHub Actions unzips the files, moves the contents to the root folder, and removes unneeded files.
- Since you're hosting the site's content using GitHub Pages it will automatically reflect the changes once Actions completes successfully.