Skip to content

Instantly share code, notes, and snippets.

@hughker
Last active August 29, 2015 14:17
Show Gist options
  • Save hughker/1ee67f9b5a434ed65241 to your computer and use it in GitHub Desktop.
Save hughker/1ee67f9b5a434ed65241 to your computer and use it in GitHub Desktop.
Codeship GitHub to Shopify Custom Deployment Script
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
@hughker
Copy link
Author

hughker commented Mar 19, 2015

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

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