Test commit 30 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |