Skip to content

Commit

Permalink
Build docs before package
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 21, 2024
1 parent 3300599 commit 6864b9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-cabal-${{ hashFiles('**/plan.json') }}
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}-
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: '0.4.40'
- run: make docs
- name: Build
run: cabal build --write-ghc-environment-files=always
- name: Test
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
deps: ## Install the dependencies of the backend
@cabal build --only-dependencies

docs: ## Run mdbook
@cd doc ; mdbook build

build: ## Build the project in fast mode
@cabal build

Expand Down

0 comments on commit 6864b9e

Please sign in to comment.