From 483ffbe275a86af809df9d350cb373ca98a18696 Mon Sep 17 00:00:00 2001 From: bruderj15 Date: Fri, 25 Oct 2024 11:27:04 +0200 Subject: [PATCH] hackage: added action publish --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..b83ea79 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: publish + +on: + push: + branches: + - main + +jobs: + publish: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: sol/haskell-autotag@v1 + id: autotag + - run: ghcup install ghc 9.6.4 + - run: ghcup set ghc 9.6.4 + - run: cabal sdist + - run: cabal update + - run: cabal haddock --haddock-for-hackage --enable-documentation + - uses: haskell-actions/hackage-publish@v1.1 + with: + hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} + publish: true + docsPath: dist-newstyle