|
6 | 6 | branches: "*" |
7 | 7 | workflow_dispatch: |
8 | 8 |
|
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + pages: write |
| 12 | + id-token: write |
| 13 | + |
9 | 14 | concurrency: |
10 | 15 | group: ${{ github.workflow }}-${{ github.ref }} |
11 | 16 | cancel-in-progress: true |
@@ -316,6 +321,44 @@ jobs: |
316 | 321 | - name: Run WASM Marimo Playwright Tests |
317 | 322 | run: bash scripts/test_playwright_wasm_marimo.sh |
318 | 323 |
|
| 324 | + # --------------------------------------------------------------------------- |
| 325 | + # Deploy Storybook to GitHub Pages (main only) |
| 326 | + # --------------------------------------------------------------------------- |
| 327 | + |
| 328 | + DeployStorybook: |
| 329 | + name: Deploy Storybook |
| 330 | + if: github.ref == 'refs/heads/main' |
| 331 | + needs: [TestStorybook] |
| 332 | + runs-on: depot-ubuntu-latest |
| 333 | + timeout-minutes: 10 |
| 334 | + environment: |
| 335 | + name: github-pages |
| 336 | + url: ${{ steps.deployment.outputs.page_url }} |
| 337 | + steps: |
| 338 | + - uses: actions/checkout@v4 |
| 339 | + - name: Setup pnpm |
| 340 | + uses: pnpm/action-setup@v4 |
| 341 | + with: |
| 342 | + version: 9.10.0 |
| 343 | + - name: Setup Node.js with pnpm cache |
| 344 | + uses: actions/setup-node@v4 |
| 345 | + with: |
| 346 | + cache: 'pnpm' |
| 347 | + cache-dependency-path: 'packages/pnpm-lock.yaml' |
| 348 | + - name: Install pnpm dependencies |
| 349 | + working-directory: packages |
| 350 | + run: pnpm install --frozen-lockfile |
| 351 | + - name: Build Storybook |
| 352 | + working-directory: packages/buckaroo-js-core |
| 353 | + run: pnpm build-storybook |
| 354 | + - name: Upload Pages artifact |
| 355 | + uses: actions/upload-pages-artifact@v3 |
| 356 | + with: |
| 357 | + path: ./packages/buckaroo-js-core/dist/storybook |
| 358 | + - name: Deploy to GitHub Pages |
| 359 | + id: deployment |
| 360 | + uses: actions/deploy-pages@v4 |
| 361 | + |
319 | 362 | # --------------------------------------------------------------------------- |
320 | 363 | # Docs — build documentation and check links |
321 | 364 | # --------------------------------------------------------------------------- |
|
0 commit comments