Skip to content
A Github Action to publish a directory to gh-pages.
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
publish-to-gh-pages

README.md

Publish to gh-pages Action

This will take a given directory ($PUBLISH_DIRECTORY) to publish to the gh-pages branch.

Usage

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"
  }
}

Secrets

  • GIT_PERSONAL_ACCESS_TOKEN: Github Personal Access Token with the public_repo permission.
  • GIT_USER: Github username of the commiter.
  • GIT_EMAIL: Github email of the commiter.

Environment Variables

  • PUBLISH_DIRECTORY: The action will copy all of the files from this directory into the root of the gh-pages branch.
You can’t perform that action at this time.