diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c9fb5f5ba9..d5e57f75a9 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -87,3 +87,41 @@ jobs: run: | # Exit with status code 1 if there are differences (i.e. unformatted files) git diff --exit-code + + + docs_build: + name: build docusaurus + runs-on: + group: databrickslabs-protected-runner-group + labels: linux-ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + cache-dependency-path: docs/ucx/yarn.lock # need to put the lockfile path explicitly + + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: build website + run: yarn build + + - name: Install Python + uses: actions/setup-python@v5 + with: + cache: 'pip' + cache-dependency-path: '**/pyproject.toml' + python-version: ${{ matrix.pyVersion }} + + - name: Install hatch + run: pip install hatch==$HATCH_VERSION + + - name: Install Docs + run: make docs-install + + - name: Build Docs + run: make docs-build