Merge pull request #38 from KasperskyLab/feature/setup-icons-storybook #14
This file contains 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: "@kaspersky/components Storybook" | |
on: | |
push: | |
branches: | |
- "master" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
defaults: | |
run: | |
working-directory: ./packages/kaspersky-components | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
npm ci | |
- name: Build Storybook | |
shell: bash | |
run: | | |
npm run build-storybook | |
- name: Upload | |
uses: actions/[email protected] | |
with: | |
path: packages/kaspersky-components/storybook | |
- id: Deploy | |
name: Deploy to GitHub Pages | |
uses: actions/[email protected] |