Skip to content

Commit

Permalink
ci: add docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrdk committed Mar 12, 2024
1 parent 523bf59 commit ff3f748
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[*.yml]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
24 changes: 24 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy docs

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build
- name: Deploy storybook
working-directory: ./packages/docs
run: npm run deploy-storybook -- --ci --existing-output-dir=storybook-static
env:
GH-TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff3f748

Please sign in to comment.