mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
20 lines
392 B
Bash
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 - |