Skip to content

Commit 3e635e7

Browse files
committed
ci: build & push haddock to gh pages
1 parent 3bc958d commit 3e635e7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020

2121
ci-wasm:
2222
runs-on: ubuntu-24.04
23+
permissions:
24+
pages: write
25+
id-token: write
2326
continue-on-error: ${{ matrix.experimental }}
2427
strategy:
2528
fail-fast: false
@@ -75,6 +78,18 @@ jobs:
7578
TODOMVC_DIST_DIR=${{ github.workspace }}/public npx playwright test --reporter=list --workers=$(nproc)
7679
popd
7780
81+
- run: |
82+
wasm32-wasi-cabal haddock --haddock-output-dir=dist-haddock
83+
84+
- if: matrix.flavour == '9.14' && github.event_name == 'push' && github.ref_name == 'master'
85+
uses: actions/upload-pages-artifact@v4
86+
with:
87+
path: dist-haddock
88+
retention-days: 90
89+
90+
- if: matrix.flavour == '9.14' && github.event_name == 'push' && github.ref_name == 'master'
91+
uses: actions/deploy-pages@v4
92+
7893
ci-native:
7994
runs-on: ubuntu-24.04
8095
strategy:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
dist-newstyle/
1+
dist-*/
22
cabal.project.local
33
public

0 commit comments

Comments
 (0)