Update docs

This commit is contained in:
github-actions
2023-09-28 21:35:16 +00:00
parent 85822663f2
commit 9ac3ab322f
28 changed files with 2839 additions and 13215 deletions

View File

@ -4,9 +4,20 @@ set -euo pipefail
shopt -s globstar
# cross platform `mkdir -p`
node -e 'fs.mkdirSync("build/contracts", { recursive: true })'
mkdirp() {
node -e "fs.mkdirSync('$1', { recursive: true })"
}
cp artifacts/contracts/**/*.json build/contracts
rm build/contracts/*.dbg.json
# cd to the root of the repo
cd "$(git rev-parse --show-toplevel)"
npm run clean
env COMPILE_MODE=production npm run compile
mkdirp contracts/build/contracts
cp artifacts/contracts/**/*.json contracts/build/contracts
rm contracts/build/contracts/*.dbg.json
node scripts/remove-ignored-artifacts.js
cp README.md contracts/