From 18a4fb12e1a4eb7fc51ee318296793bec9a12d4f Mon Sep 17 00:00:00 2001 From: Tsung-Ju Lii Date: Thu, 27 Feb 2025 19:13:19 +0800 Subject: [PATCH] bugfix: use stack-action for caching and setting up haskell toolchain Signed-off-by: Tsung-Ju Lii --- .github/workflows/deploy.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 192fc17..4230431 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -14,16 +14,13 @@ jobs: environment: deployment steps: - uses: actions/checkout@v4 - - - uses: haskell-actions/setup@v2.7.9 with: - ghc-version: 9.8.4 - enable-stack: true - stack-setup-ghc: true - - - run: | - stack build - stack exec site build + fetch-depth: 2 + + - id: stack + uses: freckle/stack-action@v5 + + - run: stack exec site build - run: | if [[ $(git status --porcelain docs/) ]]; then