Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mlocher/400642ba2eeae48a737c to your computer and use it in GitHub Desktop.
Save mlocher/400642ba2eeae48a737c to your computer and use it in GitHub Desktop.
Deploy a Shopify theme from Codeship
gem install shopify_theme
theme configure SHOPIFY_API_KEY SHOPIFY_API_PASSWORD SHOPIFY_STORE_URL SHOPIFY_THEME_ID
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $COMMIT_ID | xargs theme upload
git diff-tree -r --no-commit-id --name-only --diff-filter=D $COMMIT_ID | xargs theme remove
ls -lha
gem install shopify_theme
theme configure SHOPIFY_API_KEY SHOPIFY_API_PASSWORD SHOPIFY_STORE_URL SHOPIFY_THEME_ID
theme check
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $COMMIT_ID
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $COMMIT_ID | xargs theme upload
git diff-tree -r --no-commit-id --name-only --diff-filter=D $COMMIT_ID
git diff-tree -r --no-commit-id --name-only --diff-filter=D $COMMIT_ID | xargs theme remove
@mlocher
Copy link
Author

mlocher commented Mar 19, 2015

Information about Theme Config Variables can be found at https://github.com/hughker/shopify_theme#configuration

Huge thanks to hughker for sharing the script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment