Panda watcher CI is a Github Action CI workflow script that complements panda-portfolio. It automates the task of building static html from config.json file.
Panda watcher CI is a complemetary script to Panda-portfolio. It automatically runs npx panda-portfolio config.json
, builds static html from config.json, pushes it to the branch and requests page rebuild (in case of github pages).
- Autogenerate static html page when pushed changes to repo
- Requests gh-pages rebuild to deploy new site
- Easy to use and implement
-
Generate Personal Authentication Token (Why do I need this?)
- In the upper-right corner of any page, click your profile photo, then click Settings.
- In the left sidebar, click Developer settings.
- In the left sidebar, click Personal access tokens.
- Click Generate new token.
- Give your token name
PAT_TOKEN
. - Select repo scope.
- Click Generate Token.
- Click to copy the token to your clipboard. For security reasons, after you navigate off the page, you will not be able to see the token again.
-
Go to repo where panda-watcher-CI is configured. Add PAT to repository secret.
-
Copy
main.yml
to.github/workflows
in the target repo. -
You are ready to go.
See demo on https://github.com/bhumijgupta/bhumijgupta.github.io/
Panda-watcher-CI adds an additional commit to the repo. We add commit from a dummy account (panda-portfolio-ci@users.noreply.github.com). Github Actions does not run when additional commit is added from dummy account. This also does not trigger Github pages to rebuild the page. To rebuild the page we trigger Github pages API to rebuild the page, which requires the PAT token.
This library is licensed under MIT License. The license file can be found here
if(repo.isAwesome || repo.isHelpful){
StarRepo();
}