An environment that works with Github Pages

My project has a package script that uses JSDoc to inject data into a template and export it to ../cyclone-engine-pages.

Is it possible to create a workflow that then takes all the resulting files in that folder and commits it to a branch?

My goal for this is that when I push changes to master, Circle builds the website from the templates and if there’s a change, commit the new website content to the branch gh-pages with a commit name of something like Align with commit e92f8560c3057df4340fac1c477486d309399c14 (Or the first 7 characters of the commit hash)

The project can be seen here.