actions/build
Gabriel Feo ef36f81b41 Fix typo in build shell script
Signed-off-by: Gabriel Feo <gabriel@gabrielfeo.com>
2024-04-25 17:42:29 +01:00

29 lines
514 B
Bash
Executable file

#!/bin/bash
cd sources
case "$1" in
all)
npm clean-install
npm run all
;;
act)
# Build and copy outputs to the dist directory
npm install
npm run build
cd ..
cp -r sources/dist .
# Run act
$@
# Revert the changes to the dist directory
git co -- dist
;;
init-scripts)
cd test/init-scripts
./gradlew check
;;
*)
npm install
npm run build
;;
esac