v5.1.8 #380
Workflow file for this run
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: Storybook | |
| on: | |
| push: | |
| paths: [ | |
| ".github/workflows/storybook.yml", | |
| "projects/js-upload-api/**", | |
| "projects/client-api/**", | |
| "projects/client-api-react/.storybook/**", | |
| "projects/client-api-react/assets/**", | |
| "projects/client-api-react/examples/**", | |
| "projects/client-api-react/src/stories/**", | |
| "projects/client-api-react/package.json", | |
| "projects/client-api-react/package-lock.json", | |
| "projects/client-api-react/eslintrc", | |
| "projects/node-api/src/**", | |
| "projects/node-api/package.json", | |
| "projects/node-api/README.md" | |
| ] # Trigger the action only when files change in the folders defined here | |
| tags: | |
| workflow_dispatch: | |
| jobs: | |
| test-build-and-deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| COMPOSE_DOCKER_CLI_BUILD: 1 | |
| DOCKER_BUILDKIT: 1 | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Build | |
| run: | | |
| docker compose build | |
| - name: Storybook 🔧 | |
| run: ./tools/storybook.sh | |
| - name: JSDocs 🔧 | |
| run: ./tools/jsdocs.sh | |
| - name: Node TSDocs 🔧 | |
| run: ./tools/node-tsdocs.sh | |
| build-and-deploy: | |
| if: github.ref == 'refs/heads/master' | |
| needs: [ test-build-and-deploy ] | |
| runs-on: ubuntu-latest | |
| env: | |
| COMPOSE_DOCKER_CLI_BUILD: 1 | |
| DOCKER_BUILDKIT: 1 | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Build | |
| run: | | |
| docker compose build | |
| - name: Storybook 🔧 | |
| run: ./tools/storybook.sh | |
| - name: JSDocs 🔧 | |
| run: ./tools/jsdocs.sh | |
| - name: Node TSDocs 🔧 | |
| run: ./tools/node-tsdocs.sh | |
| - name: Examples 🔧 | |
| run: cp -r projects/client-api/examples docs-build/examples | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@4.1.5 | |
| with: | |
| branch: docs | |
| folder: docs-build | |
| target-folder: docs # The folder that we serve our files from | |
| #token is implicit | |
| #clean is implicit |