Feature/source maps #1095
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 | |
permissions: | |
pages: write | |
id-token: write | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: docs-build-check-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup `node` | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.10' | |
- name: Install `jsdoc` | |
run: npm install -g [email protected] | |
- name: Install `jsdoc` theme | |
run: npm install [email protected] | |
- name: Build Documentation | |
run: jsdoc -c conf.json -R README.md | |
- name: Copy over Custom Style Files for Theme | |
run: | | |
cp doc-style/fonts/* docs/fonts/ | |
cp doc-style/styles/* docs/styles/ | |
cp doc-style/logo.svg docs/logo.svg | |
cp lively.morphic/assets/favicon.ico docs/favicon.ico | |
- name: Upload Documentation Build | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
name: docs | |
path: docs/ | |
deploy: | |
if: github.event_name == 'workflow_dispatch' | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v2 | |
with: | |
artifact_name: docs | |
cleanup: | |
if: ${{ always() }} | |
needs: [build, deploy] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete uploaded Artifact | |
uses: geekyeggo/delete-artifact@v2 | |
with: | |
name: docs |