Skip to content

Instantly share code, notes, and snippets.

@harnerdesigns
Last active April 6, 2022 22:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harnerdesigns/0898eed72e55ec060a67c71ff8b471dd to your computer and use it in GitHub Desktop.
Save harnerdesigns/0898eed72e55ec060a67c71ff8b471dd to your computer and use it in GitHub Desktop.
Push a BigCommerce Stencil theme with GitHub Actions. See https://jackharner.com/blog/bigcommerce-stencil-ci-cd-with-github-actions/ for details.
name: Push Stencil Theme To BigCommerce
# This workflow is triggered on pushes to the Master Branch only.
on:
push:
branches:
- master
jobs:
build:
name: Stencil Push
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Set Node version to 10
uses: actions/setup-node@v1
with:
node-version: 10
- name: Install Dependencies
run: |
npm install -g @bigcommerce/stencil-cli
yarn
- run: 'echo "$STENCIL" > .stencil'
shell: bash
env:
STENCIL: ${{secrets.STENCIL}}
- name: Push Theme
run: |
stencil push -a Light -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment