Skip to content
package

GitHub Action

Github Action for Gatsby CLI

vdocker-base-layer Latest version

Github Action for Gatsby CLI

package

Github Action for Gatsby CLI

Wraps the Gatsby CLI to enable common Gatsby commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Github Action for Gatsby CLI

uses: jzweifel/gatsby-cli-github-action@vdocker-base-layer

Learn more about this action in jzweifel/gatsby-cli-github-action

Choose a version

GitHub Action for Gatsby CLI

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

Usage

on: push
name: Build Gatsby Site
jobs:
  build:
    name: Build Gatsby Site
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Build Gatsby Site
      uses: jzweifel/gatsby-cli-github-action@master
      with:
        gatsby-arg: build
on: push
name: Build Gatsby Site in Subdirectory
jobs:
  build:
    name: Build Gatsby Site
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Build Gatsby Site
      uses: jzweifel/gatsby-cli-github-action@master
      env:
        GATSBY_PROJECT_PATH: "./client"
      with:
        gatsby-arg: build

Inputs

gatsby-arg

Required The arguments to pass to Gatsby CLI. Default 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.