Skip to content

Commit

Permalink
Tag and publish on version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Nov 29, 2023
1 parent fec5960 commit 899cf9a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish

permissions:
contents: write

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: cabal check

- uses: sol/haskell-autotag@v1
id: autotag

- run: cabal sdist

- uses: haskell-actions/hackage-publish@v1.1
with:
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }}
publish: true
if: steps.autotag.outputs.created

0 comments on commit 899cf9a

Please sign in to comment.