Skip to content

Commit

Permalink
Corrected documentation deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeTravelPenguin committed Nov 12, 2023
1 parent 9733866 commit 21e704c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
workflow_dispatch:
# inputs:

env:
GHC_VERSION: '9.6.3'

jobs:
build:
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
Expand All @@ -22,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
ghc-version: ['9.6.3']
ghc-version: ['$env.GHC_VERSION']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -84,6 +87,29 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up GHC ${{ env.GHC_VERSION }}
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ env.GHC_VERSION }}
cabal-version: 'latest'
cabal-update: true

- name: Configure the build
run: |
cabal configure --enable-tests --enable-benchmarks --disable-documentation
cabal build --dry-run
- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
env:
key: ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
restore-keys: ${{ env.key }}-

- name: Build documentation
run: |
Expand Down

0 comments on commit 21e704c

Please sign in to comment.