Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
phapsidesGT committed Sep 3, 2024
1 parent 755f6a4 commit e1ae79c
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 125 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy Shopify Theme (Test)

on:
pull_request:
types: [closed]
branches:
- feature/github-actions # Change 'feature/github-actions' to main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Specify the Node.js version required

- name: Install Shopify CLI
run: npm install -g @shopify/cli @shopify/theme

- name: Authenticate Shopify CLI
env:
SHOPIFY_CLI_AUTH_TOKEN: ${{ secrets.SHOPIFY_CLI_AUTH_TOKEN }}
run: echo $SHOPIFY_CLI_AUTH_TOKEN | shopify login --store ${{ secrets.SHOPIFY_STORE_URL }} --password-stdin

- name: Deploy to Shopify Store
env:
SHOPIFY_PASSWORD: ${{ secrets.SHOPIFY_PASSWORD }}
SHOPIFY_STORE_URL: ${{ secrets.SHOPIFY_STORE_URL }}
SHOPIFY_THEME_ID: ${{ secrets.SHOPIFY_THEME_ID }}
run: shopify theme push --allow-live --themeid=${{ secrets.SHOPIFY_THEME_ID }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
.Trashes
ehthumbs.db
Thumbs.db
node_modules
Loading

0 comments on commit e1ae79c

Please sign in to comment.