-
Notifications
You must be signed in to change notification settings - Fork 18
29 lines (28 loc) · 783 Bytes
/
deploy.yml
File metadata and controls
29 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy docs
on:
push:
branches: ['main']
paths: ['src/**', '.storybook/**']
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'
- name: Install NPM dependencies
run: npm ci
- name: Build Storybook 🔧
run: STORYBOOK_MAPKIT_JS_TOKEN="${{ secrets.MAPKIT_JS_TOKEN }}" npm run build-storybook
shell: bash
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: storybook-static
clean: true
clean-exclude: |
.nojekyll