Skip to content

Commit deb7b9f

Browse files
authored
Publish to hackage directly from GitHub. (#38)
1 parent 1a4bd38 commit deb7b9f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- run: cabal check
14+
15+
- uses: sol/haskell-autotag@v1
16+
id: autotag
17+
with:
18+
prefix: v
19+
20+
- run: cabal sdist
21+
- uses: haskell-actions/[email protected]
22+
with:
23+
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
24+
publish: true
25+
if: steps.autotag.outputs.created

0 commit comments

Comments
 (0)