Skip to content

Commit

Permalink
hackage: added action publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bruderj15 committed Oct 25, 2024
1 parent 58f0da8 commit 483ffbe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: publish

on:
push:
branches:
- main

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

0 comments on commit 483ffbe

Please sign in to comment.