Skip to content

Commit

Permalink
Remove unsupported --store option and use environment authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
phapsidesGT committed Sep 5, 2024
1 parent 10c3151 commit 8e8e2f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ jobs:
export PATH=$(ruby -e 'print Gem.user_dir')/bin:$PATH
echo "Updated PATH: $PATH"
ls $(ruby -e 'print Gem.user_dir')/bin # List contents to verify Shopify CLI installation
which shopify # Check if Shopify is in the PATH
which shopify # Check if Shopify CLI is in the PATH
shopify version
- name: Deploy to Shopify
env:
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
Expand All @@ -50,4 +49,4 @@ jobs:
export SHOPIFY_CLI_AUTH_TOKEN=$SHOPIFY_API_TOKEN
# Push theme to Shopify store
shopify theme push --store "$SHOPIFY_STORE_URL" --theme "$SHOPIFY_THEME_ID" --allow-live
shopify theme push --theme "$SHOPIFY_THEME_ID" --allow-live

0 comments on commit 8e8e2f5

Please sign in to comment.