We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1cacc commit 211ea04Copy full SHA for 211ea04
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ with:
14
+ submodules: 'recursive'
15
16
+ - name: Setup Haskell
17
+ uses: haskell/actions/setup@v1
18
19
+ ghc-version: 8.10
20
+ cabal-version: 3.4
21
22
+ - name: Publish package
23
+ run: |
24
+ tar_file=$(cabal sdist | grep zoovisitor)
25
+ doc_file=$(cabal haddock --enable-documentation --haddock-for-hackage|grep 'zoovisitor.*docs.tar.gz')
26
27
+ echo $tar_file
28
+ echo $doc_file
29
30
+ cabal upload -u "${{ secrets.HACKAGE_USERNAME }}" -p "${{ secrets.HACKAGE_PASSWORD }}" --publish $tar_file
31
+ cabal upload -u "${{ secrets.HACKAGE_USERNAME }}" -p "${{ secrets.HACKAGE_PASSWORD }}" --publush --doc $doc_file
0 commit comments