Merge pull request #140 from docknetwork/fix/data-store-issues #133
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: Deploy js docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deployJsDocs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Install dependencies | |
run: yarn install | |
- name: Generate docs | |
run: | | |
rm -rf docs | |
yarn docs | |
- name: Commit report | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git checkout -b gh-pages | |
git commit -m "Automated update" | |
git push origin gh-pages --force |