Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jzweifel/gatsby-cli-github-action
GitHub Action wrapping the Gatsby CLI
https://github.com/jzweifel/gatsby-cli-github-action
gatsby-cli github-actions
Last synced: 3 months ago
JSON representation
GitHub Action wrapping the Gatsby CLI
- Host: GitHub
- URL: https://github.com/jzweifel/gatsby-cli-github-action
- Owner: jzweifel
- License: mit
- Created: 2019-01-08T21:28:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T18:13:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T08:49:16.953Z (3 months ago)
- Topics: gatsby-cli, github-actions
- Language: Shell
- Size: 26.4 KB
- Stars: 47
- Watchers: 1
- Forks: 22
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - GitHub Action for Gatsby CLI
- fucking-awesome-actions - GitHub Action for Gatsby CLI
- awesome-workflows - GitHub Action for Gatsby CLI
README
# GitHub Action for Gatsby CLI
This Action wraps the [Gatsby CLI](https://www.gatsbyjs.org/docs/gatsby-cli/) to enable common Gatsby commands.
## Usage
```yml
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
``````yml
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](LICENSE).
Container images built with this project include third party materials. See [THIRD_PARTY_NOTICE.md](THIRD_PARTY_NOTICE.md) for details.