Skip to content

Commit

Permalink
Move GH pages deploy to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaNarie committed Dec 14, 2021
1 parent ee045c5 commit ff7451e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Update Docs

on:
push:
branches:
- main
branches: [main]

jobs:
update-docs:
Expand All @@ -12,6 +11,8 @@ jobs:
steps:
- name: Check out source
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
Expand All @@ -22,6 +23,13 @@ jobs:
- name: Install npm packages
run: npm ci

- name: Build & Deploy Storybook Docs
run: |
npm run storybook:deploy
- name: Build Storybook Docs
run: npm run storybook:build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: .docs/dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff7451e

Please sign in to comment.