From 672badab96583eb13ba03e019a263adcd4da3eee Mon Sep 17 00:00:00 2001 From: Daniel Vakhrushev Date: Fri, 16 Jun 2023 12:21:57 +0300 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60fdaff..26fc9fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,7 @@ jobs: run: | cabal update cabal freeze $CONFIG - - - name: Build Site - run: | - cabal build $CONFIG - cabal run site rebuild - + - name: Cache Cabal uses: actions/cache@v2 with: @@ -46,6 +41,11 @@ jobs: restore-keys: | ${{ runner.os }}-${{ matrix.ghc }}- + - name: Build Site + run: | + cabal build $CONFIG + cabal run site rebuild + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 if: github.ref == 'refs/heads/master'