Skip to content

Commit

Permalink
add CI workflow for build and deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 14, 2022
1 parent 8500631 commit 3ce877b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Docs

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Get the code
- name: Checkout
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: yarn

- run: yarn build

- name: Deploy Storybook
working-directory: ./packages/docs
run: yarn deploy-storybook -- --ci --existing-output-dir=storybook-static
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}


0 comments on commit 3ce877b

Please sign in to comment.