From 6aac04edfd056cc815f37590f8b057ca8780fedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 30 Dec 2023 22:41:23 +0000 Subject: [PATCH] add publish action --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..09b4031 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: publish + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: sol/haskell-autotag@v1 + id: autotag + with: + prefix: null + - run: cabal sdist + - uses: haskell-actions/hackage-publish@v1.1 + with: + hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} + publish: true + if: steps.autotag.outputs.created