Skip to content

gil--/action-shopify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shopify Theme for GitHub Actions

This GitHub action is part of a list of my Actions : https://github.com/pgrimaud/actions.

Usage

To use the action simply add the following lines to your .github/main.workflow

alt text

action "Shopify" {
  uses = "pgrimaud/actions/shopify@master"
  args = ""
  secrets = [
    "SHOPIFY_PASSWORD",
    "SHOPIFY_STORE_URL",
    "SHOPIFY_THEME_ID",
    "THEME_PATH"
  ]
}

Required Secrets

First you have to generate a private app to get an API KEY on Shopify. Get API Access.

Then you'll need to provide some secrets to use the action.

  • SHOPIFY_PASSWORD: Your password from your private app previously created.
  • SHOPIFY_STORE_URL: Your store url. (e.g. demo.myshopify.com).
  • SHOPIFY_THEME_ID: Your theme id on your Shopify Store.
  • THEME_PATH: Path of your theme on your GitHub repository. If your theme is at the root of your repository, just use ./.

Optional Arguments

The optionnal argument you can add to improve theme deployment. Optionnal args are available on Theme Kit help.

Examples

  • args = "--ignored-file=\"config/*\""
  • args = "--timeout=30"

Your can also combine multiple arguments :

  • args = "--ignored-file=\"config/*\" --timeout=30"

License

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

About

Shopify Theme for GitHub Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 81.7%
  • Shell 18.3%