chore: fix docs action #1139
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: | | |
# apt-get update && apt-get install curl | |
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 | |
- run: which hugo | |
- name: Install Node and dependencies | |
uses: mongodb-labs/drivers-github-tools/node/setup@v2 | |
- name: Build Docs | |
run: npm run build:docs -- --yes | |