Update build script

This commit is contained in:
Oliver Davies 2024-08-18 12:09:39 +01:00
parent d54a624e6c
commit d55ac5332d
2 changed files with 6 additions and 6 deletions

2
run
View file

@ -12,7 +12,7 @@ PATH="${PATH}:./vendor/bin"
function generate { function generate {
local args=() local args=()
if [[ "${APP_ENV:-}" == "production" ]]; then if [[ "${APP_ENV:-}" == "prod" ]]; then
args=(--env="prod") args=(--env="prod")
else else
args=(--server --watch) args=(--server --watch)

View file

@ -65,15 +65,15 @@ function npm:build:css {
} }
function publish { function publish {
export NODE_ENV=production
export APP_ENV=production
tag-release
git push git push
tag-release
git push --tags
git stash git stash
clean clean
export APP_ENV=prod
export NODE_ENV=production
(cd assets && npm:build:css) (cd assets && npm:build:css)
generate generate