Skip to content

feat: add custom theme support via component_config #1312

feat: add custom theme support via component_config

feat: add custom theme support via component_config #1312

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
# - 'none-never'
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
run_install: true
package_json_file: packages/package.json
- uses: astral-sh/setup-uv@v7
- name: Run tests
working-directory: ./packages/buckaroo-js-core
run: |
pnpm build-storybook
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install mamba
# uses: mamba-org/setup-micromamba@v1
# with:
# micromamba-version: '1.5.8-0'
# environment-file: docs/build-environment.yml
# cache-environment: true
# - name: Build the JupyterLite site
# shell: bash -l {0}
# run: |
# cd docs
# jupyter lite build --contents ./example-notebooks --output-dir ./_output
- name: Merge screenshots into Storybook output
run: |
git fetch origin gh-pages || true
if git rev-parse origin/gh-pages &>/dev/null; then
git checkout origin/gh-pages -- screenshots/ 2>/dev/null || true
if [ -d screenshots ]; then
cp -r screenshots/ ./packages/buckaroo-js-core/dist/storybook/screenshots/
fi
fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./packages/buckaroo-js-core/dist/storybook
deploy:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4