/gatsby-cli-github-action

GitHub Action wrapping the Gatsby CLI

Primary LanguageShellMIT LicenseMIT

GitHub Action for Gatsby CLI

This Action wraps the Gatsby CLI to enable common Gatsby commands.

Usage

workflow "Build Gatsby Site" {
  on = "push"
  resolves = ["build"]
}

action "build" {
    uses = "jzweifel/gatsby-cli-github-action@master"
    args = "build"
}
workflow "Build Gatsby Site in Subdirectory" {
  on = "push"
  resolves = ["build"]
}

action "build" {
    uses = "jzweifel/gatsby-cli-github-action@master"
    env = {
      GATSBY_PROJECT_PATH = "./client"
    }
    args = "build"
}

Environment variables

  • GATSBY_PROJECT_PATH - Optional. Directory from which to execute the Gatsby CLI.

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.