diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 9692f630..4789302c 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -43,15 +43,14 @@ jobs: # Instead, add only -Werror stack-arguments: --ghc-options -Werror + cache-prefix: "2023-06-03" + - name: "Haddock: build" - # Not sure why it’s not $(stack path --local-doc-root) but the generated - # directory isn’t right, reproducible locally. Haddock reports - # a different one at the end of its run, and *that* is where the - # documentation is. run: | + stack haddock --fast --test --no-run-tests --only-dependencies stack haddock --fast --test --no-run-tests --no-haddock-deps - echo "haddock_files=$(stack path --local-install-root)/doc/" >> "$GITHUB_ENV" - echo "stack path --local-install-root: $(stack path --local-install-root)" + echo "haddock_files=$(stack path --local-doc-root)/" >> "$GITHUB_ENV" + echo "stack path --local-doc-root: $(stack path --local-doc-root)" - name: "Haddock: package" uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory