File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and deploy docs to GitHub Pages
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ build-and-deploy :
8+ # if: ${{ github.ref == 'refs/heads/main' }}
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check out repository code
12+ uses : actions/checkout@v2
13+ - name : (Package) Install dependencies and build
14+ run : yarn
15+ - name : (Example) Install dependencies
16+ working-directory : ./example
17+ run : yarn
18+ - name : (Example) Build docs
19+ working-directory : ./example
20+ run : yarn build-storybook
21+ - name : Deploy
22+ uses : peaceiris/actions-gh-pages@v3
23+ with :
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ publish_dir : ./example/storybook-static
Original file line number Diff line number Diff line change 1+ storybook-static
You can’t perform that action at this time.
0 commit comments