Skip to content

Commit

Permalink
fix: update deploy docs for storybook 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
booc0mtaco committed Aug 23, 2023
1 parent 586a0cb commit a8d65d5
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
name: Deploy Docs
name: Deploy Docs to GH Pages

on:
push:
branches:
- main

jobs:
deploy_docs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup node 😻
uses: actions/setup-node@v3
with:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'yarn'

- name: Install Dependencies ⬆️
run: yarn install --immutable
- name: Install Dependencies
run: yarn install --immutable

- name: Build EDS
run: yarn build

- name: Build Dist 🔧
run: yarn run build
- name: Build Storybook
run: yarn build:storybook

- name: Deploy Storybook Docs 🚀
run: yarn run deploy:docs
env:
GH_TOKEN: '${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}'
- name: Deploy Storybook
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./storybook-static
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a8d65d5

Please sign in to comment.