Skip to content

Commit 40c3d95

Browse files
Use cabal haddock-project to build documentation.
1 parent 3143738 commit 40c3d95

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,16 @@ jobs:
106106
107107
- name: Documentation (Generation)
108108
run: >
109-
cabal haddock
110-
--builddir=${{ env.cabal-build-dir }}
111-
--enable-documentation
112-
--haddock-hyperlink-source
113-
--haddock-html-location
114-
'https://hackage.haskell.org/package/$pkg-$version/docs'
109+
cabal haddock-project
110+
--hackage
111+
--output=gh-pages
115112
116113
- name: Documentation (Staging)
117114
if: |
118115
github.ref == 'refs/heads/main'
119116
&& matrix.os == 'ubuntu-latest'
120117
&& matrix.ghc == '9.12'
121118
run: >
122-
mv ${{ env.cabal-build-dir }}/build/*/*/*/doc/html/* gh-pages
123-
124119
touch gh-pages/.nojekyll
125120
126121
- name: Documentation (Deployment)

0 commit comments

Comments
 (0)