tomaszaba / ipccheckr

Toolkit for Performing IPC Acute Malnutrition-related Data Checks
GNU General Public License v3.0
2 stars 0 forks source link

WEBSITE: setup pkgdown deployment using `usethis::use_pkgdown_github_pages()` #70

Open ernestguevarra opened 11 hours ago

ernestguevarra commented 11 hours ago

When you run this command, it will do the following:

You can run this command on any branch. When the gh-pages branch is created, you should make sure not to touch/do anything with that branch. That branch will now only contain HTML files for your site and not the code in your main or any other branches. That branch gets updated automatically by the workflow. So make sure that you are not on that branch at anytime.

If you initiated this command on a branch that is not the main branch, the github actions yaml for the automation will be in that branch only. But the github action for pkgdowm will only deploy to gh-pages when changes have been merged to main. So, make sure that the yaml file for the new github action gets merged to main.

once that has been setup, every time you merge to main, the pkgdown workflow will run and then deploy to gh-pags branch.

You will then see your website at https://tomaszaba.github.io/ipccheckr