Skip to content

Commit

Permalink
Use correct Shopify CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
phapsidesGT committed Sep 5, 2024
1 parent 8daf3b1 commit 9c89500
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ jobs:
- name: Deploy to Shopify
env:
SHOPIFY_CLI_AUTH_TOKEN: ${{ secrets.SHOPIFY_API_TOKEN }}
SHOPIFY_STORE: ${{ secrets.SHOPIFY_STORE }}
SHOPIFY_API_TOKEN: ${{ secrets.SHOPIFY_API_TOKEN }}
SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
run: |
# Directly export the PATH for this session
export PATH=$(ruby -e 'print Gem.user_dir')/bin:$PATH
# Authenticate using the API token
export SHOPIFY_CLI_AUTH_TOKEN=$SHOPIFY_CLI_AUTH_TOKEN
# Set the Shopify CLI authentication token environment variable
export SHOPIFY_CLI_AUTH_TOKEN=$SHOPIFY_API_TOKEN
# Push theme to Shopify store
shopify theme push --store "$SHOPIFY_STORE" --allow-live
shopify theme push --store="$SHOPIFY_STORE_URL" --theme="$SHOPIFY_THEME_ID" --allow-live

0 comments on commit 9c89500

Please sign in to comment.