-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
42 lines (42 loc) · 1.81 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Shopify Theme Actions"
description: "A set of GitHub Actions to enable fast Shopify theme development workflows."
author: "Matthew Petrie"
branding:
icon: "shopping-cart"
color: "green"
inputs:
ACTION:
description: "'DEPLOYMENT_PREVIEW' (creates a PR specific Shopify theme), 'DEPLOY' (deploys to a specified theme, 'SHOPIFY_THEME_ID' must also be set), 'REMOVE_DEPLOYMENT_PREVIEW_THEME' (removes a previously created PR specific Shopify theme)"
required: true
GITHUB_TOKEN:
description: "Github authentication token that allows comments to be created on PRs (optional)"
required: false
SHOPIFY_STORE_URL:
description: "The shopify development store i.e. my-store.myshopify.com"
required: true
SHOPIFY_PASSWORD:
description: "The Shopify store's private app password used with themekit"
required: true
SHOPIFY_API_KEY:
description: "The Shopify store's private app API Key to allow theme creation and removal (if this is opted for)"
required: true
SHOPIFY_THEME_ID:
description: "If provided the theme will be deployed to this Shopify theme id. If not provided the theme will be deployed to a PR specific newly created theme."
required: false
SHOPIFY_THEME_DIRECTORY:
description: "The directory containing the Shopify theme to deploy i.e. './dist'"
required: true
SHOPIFY_ALLOW_LIVE_THEME_DEPLOYMENT:
description: "If deploying to a 'live' Shopify theme this must be set to 'true'"
required: false
IGNORED_FILES:
description: "Ignore files pattern. Comma seperated string of patterns / file paths."
required: false
outputs:
SHOPIFY_THEME_ID:
description: "The newly created and deployed Shopify theme id"
SHOPIFY_THEME_PREVIEW_URL:
description: "The newly created and deployed theme preview url"
runs:
using: "node12"
main: "dist/index.js"