Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish the storybook #67

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/deploy-storybook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Storybook pages to CloudFlare
on:
push:
branches:
- '66-publish-the-storybook-that-contains-the-components-catalog'

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: '20'
- run: yarn install --frozen-lockfile
- run: yarn run build:storybook
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2238a825c5aca59233eab1f221f7aefb
projectName: web3circle-wiki
directory: ./circle-demo-webapp/storybook-static
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lint": "yarn workspace web3-circle-sdk lint",
"build": "yarn workspace web3-circle-sdk build",
"build:docs": "yarn workspace web3-circle-sdk build:docs",
"build:storybook": "yarn workspace circle-demo-webapp build-storybook",
"test": "yarn workspace web3-circle-sdk test"
},
"packageManager": "[email protected]"
Expand Down
Loading