Merge pull request #3896 from roc-lang/www-repl-nightly-2

Use nightly build of REPL when deploying the website
This commit is contained in:
Anton-4 2022-08-27 09:29:47 +02:00 committed by GitHub
commit 660c4dfb2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,14 +16,11 @@ pushd build
wget https://github.com/roc-lang/roc/archive/www.tar.gz
# Download the latest pre-built Web REPL as a zip file. (Build takes longer than Netlify's timeout.)
# TODO: When roc repo is public, download it from nightly builds.
wget https://github.com/brian-carroll/mock-repl/archive/refs/heads/deploy.zip
unzip deploy.zip
# Explicitly list the filenames, failing the build if they're not found
mv mock-repl-deploy/roc_repl_wasm.js repl/
mv mock-repl-deploy/roc_repl_wasm_bg.wasm repl/
rmdir mock-repl-deploy
rm deploy.zip
REPL_TARFILE="roc_repl_wasm.tar.gz"
wget https://github.com/roc-lang/roc/releases/download/nightly/$REPL_TARFILE
tar -xzf $REPL_TARFILE -C repl
rm $REPL_TARFILE
ls -lh repl
popd