Skip to content

Commit 0b2ce07

Browse files
committed
??
1 parent d552337 commit 0b2ce07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ jobs:
2828
command: |
2929
mkdir /tmp/artifacts;
3030
cp starter-theme.zip /tmp/artifacts/theme.zip
31+
mkdir export
32+
cp starter-theme.zip export/theme.zip
3133
ls
3234
- store_artifacts:
3335
path: /tmp/artifacts
36+
- store_artifacts:
37+
path: export
3438
# Upload Theme to Shopify
3539
- run: .circleci/theme-upload.js
3640
# List Shopify Themes

.circleci/theme-upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const shopify = new Shopify({
3333
🌈 Create New Theme Based on Build
3434
*/
3535
const themeName = `Debut-${Date.now()}`;
36-
const themeUrl = `${process.env.CIRCLE_BUILD_URL}/artifacts/0/tmp/artifacts/theme.zip`;
36+
const themeUrl = `${process.env.CIRCLE_BUILD_URL}/artifacts/0/${process.env.HOME}/project/export/theme.zip`;
3737

3838
console.log(`${process.env.CIRCLE_BUILD_URL}/artifacts/0/tmp/artifacts/theme.zip`);
39-
console.log(`${process.env.CIRCLE_BUILD_URL}/artifacts/0/${process.env.HOME}/project/starter-theme.zip`);
39+
console.log(`${process.env.CIRCLE_BUILD_URL}/artifacts/0/${process.env.HOME}/project/export/theme.zip`);
4040

4141
shopify.theme.create({
4242
name: themeName,

0 commit comments

Comments
 (0)