3e63216822
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Publish shared component storybook
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- "develop"
|
|
paths:
|
|
- "packages/shared-components/**/*"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build storybook
|
|
uses: ./.github/workflows/shared-component-storybook-build.yml
|
|
|
|
publish:
|
|
name: Publish storybook
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
environment: SharedComponents
|
|
steps:
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
name: shared-components-storybook
|
|
path: storybook-static
|
|
|
|
- name: 🚀 Deploy to Cloudflare Pages
|
|
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3
|
|
with:
|
|
apiToken: ${{ secrets.CF_PAGES_TOKEN }}
|
|
accountId: ${{ secrets.CF_PAGES_ACCOUNT_ID }}
|
|
command: pages deploy storybook-static --project-name=shared-components-storybook
|