chore: fix docs action #1141
Workflow file for this run
This file contains hidden or 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 documentation | |
on: | |
push: | |
branches: ['main'] | |
workflow_dispatch: {} | |
workflow_call: {} | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Install Hugo | |
run: | | |
mkdir hugo | |
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo | |
echo "hugo" >> $GITHUB_PATH | |
- name: Install Node and dependencies | |
uses: mongodb-labs/drivers-github-tools/node/setup@v2 | |
- name: Build Docs | |
run: hugo version && npm run build:docs -- --yes | |