-
-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (32 loc) · 1.14 KB
/
storybook-publish.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
name: Uploady Storybook Publish
on:
workflow_dispatch:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
publish:
name: Publish Uploady Storybook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Build Storybook Site
run: pnpm sb:build:prod
- name: Install Netlify CLI
run: pnpm install -w netlify-cli
- name: Publish Storybook to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: |
netlify deploy --prod --debug --cwd .sb-static
#netlify deploy --trigger
# NETLIFY_DEPLOY_MESSAGE: "Deployed from GitHub action"
# NETLIFY_DEPLOY_TO_PROD: true
# install_command: "echo Skipping installing the dependencies"
# build_command: "echo Skipping building the web files"