chore: update project to v1.4.0 #64
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: Build and Deploy | |
| on: | |
| push: | |
| paths: ['src/**', '.storybook/**'] # Trigger the action only when files change in the folders defined here | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Install and Build | |
| run: | | |
| yarn install | |
| yarn build-storybook | |
| - name: Get commit info | |
| shell: bash | |
| run: | | |
| echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
| - name: Deploy | |
| uses: crazy-max/ghaction-github-pages@v4 | |
| with: | |
| target_branch: docs | |
| build_dir: docs-build | |
| commit_message: 'Deploying to docs from ${{ env.sha_short }}' | |
| keep_history: false | |
| jekyll: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |