1 parent 5c2a75a commit 2cff0c6Copy full SHA for 2cff0c6
2 files changed
.github/workflows/pipeline.yml
@@ -3,7 +3,7 @@ name: pipeline
3
on: [push, pull_request]
4
5
jobs:
6
- cabal:
+ check:
7
name: pipeline
8
runs-on: ubuntu-latest
9
@@ -69,3 +69,13 @@ jobs:
69
70
- name: Check cabal file
71
run: cabal check
72
+
73
+ - name: Document
74
+ if: startsWith(github.ref, 'refs/tags/v')
75
+ run: cabal haddock --builddir="$dir" --haddock-for-hackage --enable-documentation
76
77
+ - name: Publish
78
79
+ run: |
80
+ cabal upload -t ${{ secrets.HACKAGE_TOKEN }}
81
+ cabal upload -d $dir/*-docs.tar.gz -t ${{ secrets.HACKAGE_TOKEN }}
.gitignore
@@ -1,4 +1,7 @@
1
-
+build/
2
+cache/
+packagedb/
+*.tar.gz
### Created by https://www.gitignore.io
### Haskell ###
0 commit comments