Skip to content

New cache.

New cache. #96

Workflow file for this run

name: Build and deploy to GitHub Pages
on: push
jobs:
build-deploy:
name: Build and deploy
runs-on: ubuntu-latest
env:
GHC_VERSION: '9.4.7'
CABAL_VERSION: '3.6'
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: haskell/actions/setup@v1
with:
ghc-version: ${{env.GHC_VERSION}}
cabal-version: ${{env.CABAL_VERSION}}
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-${{ env.GHC_VERSION }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }}
restore-keys: ${{ runner.os }}-${{ env.GHC_VERSION }}-
- run: cabal update
- run: cabal build --only-dependencies
- run: cabal build
- run: cabal exec organic build
- name: 'Run peaceiris/[email protected]: deploy to github pages'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site
if: github.ref == 'refs/heads/develop'