-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployToProduction.yml
28 lines (26 loc) · 1004 Bytes
/
deployToProduction.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
# When a commmit is pushed to the `main` branch deploy to production
name: Deploy to Production
on:
push:
branches:
- main # TODO - this may need updating
jobs:
production_deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# ... steps to build Shopify theme ...
- name: Shopify Theme Actions
uses: matthew-petrie/[email protected]
with:
ACTION: "DEPLOY"
SHOPIFY_STORE_URL: ${{secrets.SHOPIFY_STORE_URL}}
SHOPIFY_PASSWORD: ${{secrets.SHOPIFY_PASSWORD}}
SHOPIFY_API_KEY: ${{secrets.SHOPIFY_API_KEY}}
SHOPIFY_THEME_DIRECTORY: "./dist" # TODO - this may need updating
SHOPIFY_ALLOW_LIVE_THEME_DEPLOYMENT: true
SHOPIFY_THEME_ID: 12156 # TODO - THIS MUST BE UPDATED
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}