v3.2.0 (#4358) #767
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 documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy_github_pages: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: NPM install | |
run: npm ci | |
# - name: Lint TypeScript sources | |
# run: npm run lint | |
- name: Bootstrap packages | |
run: npm run bootstrap | |
- name: Build packages | |
run: npm run build | |
- name: Generate fidelity artifacts | |
continue-on-error: true | |
uses: GabrielBB/xvfb-action@v1.0 | |
with: | |
run: ./node_modules/.bin/lerna run --scope @google/model-viewer-render-fidelity-tools test --stream | |
- name: Stage documentation artifacts | |
run: ./packages/modelviewer.dev/scripts/ci-before-deploy.sh | |
- name: Deploy to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
force_orphan: true | |
publish_dir: ./packages/modelviewer.dev/dist |