diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5b3d3ca..f0c4ec2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,51 +36,48 @@ jobs: exit 1 fi - # - name: Set up GHC ${{ env.ghc-version }} - # uses: haskell-actions/setup@latest - # id: setup - # with: - # ghc-version: ${{ env.ghc-version }} - # cabal-version: ${{ env.cabal-version }} - # cabal-update: true - - # - name: Configure the build - # run: | - # cabal configure --enable-tests --enable-benchmarks --disable-documentation - # cabal build all --dry-run + - name: Set up GHC ${{ env.ghc-version }} + uses: haskell-actions/setup@latest + id: setup + with: + ghc-version: ${{ env.ghc-version }} + cabal-version: ${{ env.cabal-version }} + cabal-update: true - # - name: Install dependencies - # run: cabal build all --only-dependencies + - name: Configure the build + run: | + cabal configure --enable-tests --enable-benchmarks --disable-documentation + cabal build all --dry-run - # - name: Build - # run: cabal build all + - name: Install dependencies + run: cabal build all --only-dependencies - # - name: Run tests - # run: cabal test all + - name: Build + run: cabal build all - # - name: Check cabal file - # run: cabal check + - name: Run tests + run: cabal test all - # - name: Build documentation - # run: cabal haddock all + - name: Check cabal file + run: cabal check - # - name: Build source archive - # run: cabal sdist --output-directory ./dist-newstyle + - name: Build source archive + run: cabal sdist --output-directory ./dist-newstyle - - name: Build documentation + - name: Build documentation archive run: | PKG_VERSION="${{ github.event.repository.name }}-${{ env.tag }}" - echo "PKG_VERSION: $PKG_VERSION" - # cabal haddock \ - # --haddock-html-location='https://hackage.haskell.org/package/${PKG_VERSION}/docs' \ - # --haddock-hyperlink-source \ - # --haddock-quickjump \ - # --haddock-for-hackage + cabal haddock \ + --haddock-html-location='https://hackage.haskell.org/package/${PKG_VERSION}/docs' \ + --haddock-hyperlink-source \ + --haddock-quickjump \ + --haddock-for-hackage - # - name: Create release - # uses: ncipollo/release-action@v1 - # env: - # GITHUB_TOKEN: ${{ steps.access-token.outputs.token }} - # with: - # allowUpdates: true - # generateReleaseNotes: true + - name: Create release + uses: ncipollo/release-action@v1 + env: + GITHUB_TOKEN: ${{ steps.access-token.outputs.token }} + with: + artifacts: "./dist-newstyle/*.tar.gz" + allowUpdates: true + generateReleaseNotes: true