Files
qinglong_app/pub/code_field-master/example/deploy.sh
2022-06-15 11:05:49 +08:00

20 lines
392 B
Bash

#!/usr/bin/env sh
# package.json "deploy": "yarn build; push-dir --dir=dist --branch=gh-pages --cleanup"
# abort on errors
set -e
# build
flutter build web --release --no-sound-null-safety
# navigate into the build output directory
cd build/web
# Commit repo
git init
git add -A
git commit -m 'deploy'
git push -f git@github.com:BertrandBev/code_field.git master:gh-pages
# Nav back
cd -