Skip to content

Python scripts to use with GitHub Actions and Paligo.

Notifications You must be signed in to change notification settings

johnapaz/unzip-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About unzip-util

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.

Prerequisites

You must first connect Paligo to GitHub in order to use these scripts.

How to use these scripts

  1. Download the contents of this repository (Code > Download ZIP).
  2. Copy the scripts into the root folder of the repository where Paligo will insert the .zip file.
  3. 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.
  4. Copy the unzip-util.yml file into the root folder of the repository.
  5. Save and push the changes.
  6. Setup GitHub Pages.
    1. In GitHub, go to Settings > Pages.
    2. Select a source and save.
  7. Setup GitHub Actions.
    1. In GitHub, go to Actions > set up a workflow yourself.
    2. 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.
  8. Trigger a build in Paligo.

What should happen

  1. Paligo pushes the .zip file to your GitHub repository.
  2. GitHub Actions unzips the files, moves the contents to the root folder, and removes unneeded files.
  3. Since you're hosting the site's content using GitHub Pages it will automatically reflect the changes once Actions completes successfully.

About

Python scripts to use with GitHub Actions and Paligo.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages