Currently, a push to the main branch triggers a deployment to the gh-pages branch, which subsequently triggers github's built-in publishing of the website to github pages (i.e. free hosting for this app, courtesy of github).
The automated (or manually triggered) deployment to gh-pages currently uses the workflow action JamesIves/github-pages-deploy-action and it works very well (see this run, under build-and-deploy > "Deploy /public to gh-pages branch"). However, github has recently released their own actions/deploy-pages action (currently in public beta) which aims to officially do the same thing.
To clear up any confusion, this is distinctly different from the built-in pages-build-deployment action (see this run), which publishes the latest content on the gh-pages branch to the web so it's available online.
Perhaps at some point it makes sense to consider switching from JamesIves/github-pages-deploy-action to the official actions/deploy-pages workflow action for deploying to the latest commit to main to gh-pages.
I know these details may seem unnecessarily complex to a lot of people and there is absolutely no urgency to the matter. However, I decided that it makes sense to open this discussion in case anyone is interested.
Currently, a push to the
main
branch triggers a deployment to thegh-pages
branch, which subsequently triggers github's built-in publishing of the website to github pages (i.e. free hosting for this app, courtesy of github).The automated (or manually triggered) deployment to
gh-pages
currently uses the workflow action JamesIves/github-pages-deploy-action and it works very well (see this run, underbuild-and-deploy > "Deploy /public to gh-pages branch"
). However, github has recently released their own actions/deploy-pages action (currently in public beta) which aims to officially do the same thing.To clear up any confusion, this is distinctly different from the built-in
pages-build-deployment
action (see this run), which publishes the latest content on thegh-pages
branch to the web so it's available online.See: "Do I need the pages-build-deployment Github Action, when I have another action for my Github Pages?" on Stack Overflow
Perhaps at some point it makes sense to consider switching from
JamesIves/github-pages-deploy-action
to the officialactions/deploy-pages
workflow action for deploying to the latest commit tomain
togh-pages
.