Skip to content

Commit b20ccc5

Browse files
Build documentation on all platforms. (#16)
2 parents 4653a88 + 1218e24 commit b20ccc5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ jobs:
8787
cabal test all
8888
--builddir=${{ env.cabal-build-dir }}
8989
90-
- name: Documentation
91-
if: |
92-
matrix.os == 'ubuntu-latest'
93-
&& matrix.ghc == '9.4.4'
90+
- name: Documentation (Generation)
9491
run: >
9592
cabal haddock
9693
--builddir=${{ env.cabal-build-dir }}
@@ -99,11 +96,17 @@ jobs:
9996
--haddock-html-location
10097
'https://hackage.haskell.org/package/$pkg-$version/docs'
10198
99+
- name: Documentation (Staging)
100+
if: |
101+
github.ref == 'refs/heads/main'
102+
&& matrix.os == 'ubuntu-latest'
103+
&& matrix.ghc == '9.4.4'
104+
run: >
102105
mv ${{ env.cabal-build-dir }}/build/*/*/*/doc/html/* gh-pages
103106
104107
touch gh-pages/.nojekyll
105108
106-
- name: Deploy
109+
- name: Documentation (Deployment)
107110
if: |
108111
github.ref == 'refs/heads/main'
109112
&& matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)