42 lines
822 B
YAML
42 lines
822 B
YAML
name: Deploy documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy_github_pages:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
- name: NPM install
|
|
run: npm ci
|
|
|
|
# - name: Lint TypeScript sources
|
|
# run: npm run lint
|
|
|
|
- name: Build packages
|
|
run: npm run build
|
|
|
|
- name: Stage documentation artifacts
|
|
run: ./packages/modelviewer.dev/scripts/ci-before-deploy.sh
|
|
|
|
- name: Deploy to Github Pages
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_branch: gh-pages
|
|
force_orphan: true
|
|
publish_dir: ./packages/modelviewer.dev/dist
|