Publish to hackage directly from GitHub. (#38) #1
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: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cabal check | |
- uses: sol/haskell-autotag@v1 | |
id: autotag | |
with: | |
prefix: v | |
- run: cabal sdist | |
- uses: haskell-actions/hackage-publish@v1.1 | |
with: | |
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} | |
publish: true | |
if: steps.autotag.outputs.created |