Last active
April 6, 2022 22:20
-
-
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.
This file contains hidden or 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: 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