mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
新增代码文件支持行号显示
This commit is contained in:
20
pub/code_field-master/example/deploy.sh
Normal file
20
pub/code_field-master/example/deploy.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/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 -
|
||||
Reference in New Issue
Block a user