mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Playground (#134)
This commit is contained in:
parent
09e7558360
commit
8c3e8acd3a
7 changed files with 80 additions and 10 deletions
14
.github/workflows/gh-pages.yml
vendored
14
.github/workflows/gh-pages.yml
vendored
|
|
@ -14,6 +14,9 @@ jobs:
|
|||
with:
|
||||
ghc-version: '8.8.2'
|
||||
cabal-version: '3.0'
|
||||
- uses: jorelali/setup-elm@v2
|
||||
with:
|
||||
elm-version: 0.19.1
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v1
|
||||
|
|
@ -65,7 +68,7 @@ jobs:
|
|||
\"color\": \"success\" \
|
||||
}" > hpc/hpc_badge.json
|
||||
|
||||
- name: Haddock Badge
|
||||
- name: Haddock Badge
|
||||
run: |
|
||||
cabal v2-haddock --enable-coverage | grep " in " | sort -hr > hpc/haddock.txt
|
||||
COVERAGE=$(awk '{good += $3; total += $5} END {printf "%.0f", good/total*100}' hpc/haddock.txt)
|
||||
|
|
@ -76,6 +79,15 @@ jobs:
|
|||
\"color\": \"success\" \
|
||||
}" > hpc/haddock_badge.json
|
||||
|
||||
- name: Playground
|
||||
run: |
|
||||
cd reanimate-playground/viewer-elm
|
||||
npm install
|
||||
npm run build
|
||||
npm run minify
|
||||
mkdir hpc/playground
|
||||
cp dist/* hpc/playground/
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@3.5.9
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue