diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4ad16858177..65687486a3e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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 \ No newline at end of file + shopify theme push --store="$SHOPIFY_STORE_URL" --theme="$SHOPIFY_THEME_ID" --allow-live \ No newline at end of file