Skip to content

datacube: separate REPL and DataCube components (#3549) #1859

datacube: separate REPL and DataCube components (#3549)

datacube: separate REPL and DataCube components (#3549) #1859

name: Publish Website
on:
push:
branches:
- master
jobs:
build-documentation-website:
name: Build Documentation Site
runs-on: ubuntu-latest
if: github.repository == 'finos/legend-studio' # prevent running this action in forks
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Setup Yarn cache
uses: actions/cache@v4.0.2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Setup Node
uses: actions/setup-node@v4.0.4
with:
node-version: 21
- name: Install dependencies
run: yarn
- name: Build website content
env:
# Typedoc build could consume a large amount of memory
# See https://github.com/TypeStrong/typedoc/issues/1606
NODE_OPTIONS: '--max-old-space-size=4096'
run: yarn build:ts && yarn build:website
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
path: ./build/docs
deploy-documentation-website:
name: Deploy Documentation Site
runs-on: ubuntu-latest
if: github.repository == 'finos/legend-studio' # prevent running this action in forks
needs: build-documentation-website
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.5