From 0e1213a7f330245538e27874986e3af27236958d Mon Sep 17 00:00:00 2001 From: CristhianMotoche Date: Wed, 24 Jul 2024 08:19:22 -0500 Subject: [PATCH] feat(release): Include cabal configure step --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4760b78..aa08dd7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + # Workaround for issue: https://github.com/cycjimmy/semantic-release-action/issues/159 # Had to pin to version 14 - name: "Pin node version" uses: actions/setup-node@v2 with: node-version: '14' + + # Use haskell environment to run cabal configure needed for semantic-release-hackage + - name: Setup Haskell + id: setup-haskell-cabal + uses: haskell-actions/setup@v2 + with: + ghc-version: "9.0" + cabal-version: "3.8" + + - name: Semantic Release + run: cabal configure --enable-tests + - name: Semantic Release uses: cycjimmy/semantic-release-action@v4 with: