Skip to content

adding autodeploy with minification fix #9

adding autodeploy with minification fix

adding autodeploy with minification fix #9

Workflow file for this run

name: Theme deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler: 'latest'
- name: Install Shopify CLI
run: npm install -g @shopify/cli @shopify/theme
- name: Install dependencies
run: npm install
- name: Run gulp scripts
run: npm run styles & npm run scripts
- name: Deploy
env:
SHOPIFY_FLAG_STORE: ${{ secrets.SHOPIFY_STORE }}
SHOPIFY_CLI_THEME_TOKEN: ${{ secrets.SHOPIFY_CLI_THEME_TOKEN }}
SHOPIFY_CLI_TTY: 0
run: shopify theme push --theme ${{ secrets.SHOPIFY_THEME_ID }}