-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (22 loc) · 811 Bytes
/
Copy pathdeploy_dev.yml
File metadata and controls
26 lines (22 loc) · 811 Bytes
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
---
name: Deploy to Development
on:
workflow_call: # allows calling from merge_to_dev.yml
workflow_dispatch: # allows manual triggering
jobs:
# 🚀 Deploy job
deploy_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install -g @shopify/cli @shopify/theme
# Test the token
- name: Test Shopify connection
run: shopify theme list --store=${{ secrets.SHOPIFY_FLAG_STORE }}
env:
SHOPIFY_CLI_THEME_TOKEN: ${{ secrets.SHOPIFY_CLI_THEME_TOKEN }}
# Deploy to development theme
- name: Deploy to Development Theme
run: shopify theme push --force --theme="development" --store=${{ secrets.SHOPIFY_FLAG_STORE }}
env:
SHOPIFY_CLI_THEME_TOKEN: ${{ secrets.SHOPIFY_CLI_THEME_TOKEN }}