-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (33 loc) · 1013 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: Haddocks to Github Pages
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: cabal-${{ runner.os }}-9.0-${{ hashFiles('cabal.project', 'rec-def.cabal') }}
- uses: haskell/actions/setup@v1
with:
ghc-version: 9.0
- name: Build
run: |
cabal update
cabal haddock --haddock-hyperlink-source --haddock-quickjump --haddock-html-location='https://hackage.haskell.org/package/$pkg-$version/docs'
mv dist-newstyle/build/*/*/*/doc/html/rec-def gh-page
touch gh-page/.nojekyll
echo haskell-rec-def.nomeata.de > gh-page/CNAME
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: gh-page
SINGLE_COMMIT: true