Merge pull request #3 from bruderj15/main #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
branches: | |
- hackage | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: sol/haskell-autotag@v1 | |
id: autotag | |
- run: ghcup install ghc 9.6.4 | |
- run: ghcup set ghc 9.6.4 | |
- run: cabal sdist | |
- run: cabal update | |
- run: cabal haddock --haddock-for-hackage --enable-documentation | |
- uses: haskell-actions/[email protected] | |
with: | |
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} | |
publish: true | |
docsPath: dist-newstyle |