Merge pull request #433 from allxsmith/docs/pm-tabs-component #330
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Cloudflare Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - 'bulma-ui/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-deploy: | |
| name: Build and Deploy to Cloudflare Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: '24' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build Docusaurus | |
| run: pnpm exec turbo run build --filter=@allxsmith/bestax-docs | |
| - name: Build Storybook | |
| run: pnpm --filter @allxsmith/bestax-bulma run build-storybook | |
| - name: Copy Storybook to Docusaurus build | |
| run: | | |
| mkdir -p docs/build/storybook | |
| cp -r bulma-ui/storybook-static/* docs/build/storybook/ | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy docs/build --project-name=bestax --commit-dirty=true |