Skip to content

Commit

Permalink
Test full release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjosephmckeon committed Jan 27, 2024
1 parent 50885f8 commit 8a72d79
Showing 1 changed file with 35 additions and 38 deletions.
73 changes: 35 additions & 38 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8a72d79

Please sign in to comment.