This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
Update README.md to add xNFT usage #60
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: TypeDoc | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.4.0] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Bootstrap Lerna | |
run: yarn lerna bootstrap | |
- name: Build packages | |
run: yarn lerna run build | |
- name: Generate TypeDoc for @gumhq/sdk | |
run: yarn workspace @gumhq/sdk run build:docs | |
- name: Generate TypeDoc for @gumhq/react-sdk | |
run: yarn workspace @gumhq/react-sdk run build:docs | |
- name: Copy documentation to root docs folder | |
run: | | |
mkdir -p docs | |
mkdir -p docs/react | |
cp -r packages/gpl-core/docs/* docs | |
cp -r packages/react-sdk/docs/* docs/react | |
- name: Deploy documentation to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GH_PAGES_TOKEN }} | |
publish_dir: ./docs | |
publish_branch: gh-pages |