forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 847 Bytes
/
ci-cd.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
name: CI/CD Pipeline for Shopify
on:
push:
branches:
- feature/github-actions # Change 'feature/github-actions' to main
jobs:
deploy:
name: Deploy to Shopify Store
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Shopify CLI
run: npm install -g @shopify/cli @shopify/theme
- name: Deploy Theme to Shopify
env:
SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
SHOPIFY_CLI_AUTH_TOKEN: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }}
run: shopify theme push --force --verbose --allow-live --store=${{ secrets.SHOPIFY_STORE_URL }} --theme=${{ secrets.SHOPIFY_THEME_ID }}