Skip to content

feat: add custom theme support via component_config #1196

feat: add custom theme support via component_config

feat: add custom theme support via component_config #1196

# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches: "*"
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
TestPython:
name: Python / Test
permissions:
contents: write
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/buckaroo-js-core/dist/storybook
keep_files: true
# - name: Setup Pages
# uses: actions/configure-pages@v3
# - name: Upload Artifact
# if: github.ref == 'refs/heads/main'
# uses: actions/upload-pages-artifact@v1
# with:
# # location of the coverage artifacts
# path: "./coverage"
# Upload:
# name: Upload2
# runs-on: ubuntu-latest
# steps:
# - name: Upload3
# uses: actions/upload-pages-artifact@v3
# path: packages/buckaroo-js-core/dist/storybook
# - id: deploy
# name: Deploy to GitHub Pages
# uses: actions/deploy-pages@v4
# with:
# token: ${{ github.token }}
# #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
# - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
# with:
# install_command: cd packages/buckaroo-js-core; pnpm install # default: npm ci
# build_command: cd packages/buckaroo-js-core; pnpm build-storybook # default: npm run build-storybook
# path: packages/buckaroo-js-core/dist/storybook # default: dist/storybook
# checkout: true # default: true