This will take a given directory ($PUBLISH_DIRECTORY) to publish to the gh-pages branch.
You will need a Github Personal Access Token with the public_repo permission.
action "Publish" {
uses = "devincarr/publish-gh-pages@master"
secrets = [
"GIT_PERSONAL_ACCESS_TOKEN",
"GIT_USER",
"GIT_EMAIL",
]
env = {
PUBLISH_DIRECTORY = "build"
}
}
GIT_PERSONAL_ACCESS_TOKEN: Github Personal Access Token with thepublic_repopermission.GIT_USER: Github username of the commiter.GIT_EMAIL: Github email of the commiter.
PUBLISH_DIRECTORY: The action will copy all of the files from this directory into the root of thegh-pagesbranch.