Skip to content

Commit 3eba3e7

Browse files
committed
ci: add haddock+cloudflare pages action
1 parent d241ace commit 3eba3e7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,16 @@ jobs:
9494

9595
- name: Run tests (oldest)
9696
run: cabal test all
97+
98+
- name: Build haddocks
99+
run: |
100+
cabal haddock-project
101+
if: ${{ matrix.haddock }}
102+
103+
- name: Upload haddocks
104+
uses: cloudflare/wrangler-action@v3
105+
with:
106+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
107+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
108+
command: pages deploy haddocks --project-name=ondim
109+
if: ${{ matrix.haddock }}

0 commit comments

Comments
 (0)