Merge pull request #76 from solved-ac/release/v0.7.0 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: (Package) Install dependencies and build | |
run: yarn | |
- name: (Example) Install dependencies | |
working-directory: ./example | |
run: yarn | |
- name: (Example) Build docs | |
working-directory: ./example | |
run: yarn build-storybook | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./example/storybook-static |