Skip to content

Commit

Permalink
Publish to hackage directly from GitHub. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaendle authored Oct 20, 2023
1 parent 1a4bd38 commit deb7b9f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
publish: true
if: steps.autotag.outputs.created

0 comments on commit deb7b9f

Please sign in to comment.