diff --git a/.github/workflows/openfe-doc-build.yaml b/.github/workflows/openfe-doc-build.yaml index b372d61a..c879b88c 100644 --- a/.github/workflows/openfe-doc-build.yaml +++ b/.github/workflows/openfe-doc-build.yaml @@ -40,20 +40,14 @@ jobs: id: date run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - - name: Install doc environment - uses: mamba-org/setup-micromamba@v2 + - name: Install pixi doc environment + uses: prefix-dev/setup-pixi@9936258fee697aff89b3fed6ca1f80a382ef694e with: - environment-file: openfe/docs/environment.yaml - cache-environment: true - cache-downloads: true - cache-environment-key: environment-${{ steps.date.outputs.date }} - cache-downloads-key: downloads-${{ steps.date.outputs.date }} - init-shell: bash + manifest-path: openfe/pixi.toml + environments: docs + locked: true + cache: true - name: Build the docs - run: | - cd openfe - # install so that we can get a version metadata we use in docs - pip install . --no-deps - cd docs - make html + working-directory: openfe + run: pixi run -e docs docs-build