This Project is an example for the usage of the Shopify Theme Preview Action.
To see this action in action, simply click on the open Pull Request and see for yourself!
run-name: Create Theme Preview by @${{ github.actor }}
on:
issue_comment:
types: [created]
jobs:
deploy:
name: Preview
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '!preview')
steps:
- uses: Brand-Boosting-GmbH/shopify-theme-preview@v1
with:
shopify_flag_store: 'your-store.myshopify.com'
shopify_cli_theme_token: 'shopify_cli_theme_token'
build_step: 'npm i && npm run build' // optional
dir: 'dist' // optional
For more detailed information follow these links: