-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (36 loc) · 1.04 KB
/
storybook.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Storybook
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '21.2.0'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Add tracking code
run: |
echo "${{ secrets.TRACKING_CODE }}" >> .storybook/preview-body.html
echo "${{ secrets.TRACKING_CODE }}" >> .storybook/manager-head.html
- name: Build storybook
run: |
yarn test-output
yarn build-storybook
env:
STORYBOOK_URL: https://phorkit.org
- name: Deploy storybook
uses: burnett01/[email protected]
with:
switches: -avz --delete
path: build/storybook
remote_path: ./phorkit/
remote_host: phork.org
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}