diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..427337d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,25 @@ +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