Last active
October 30, 2019 08:55
-
-
Save juzhiyuan/fb1cbedd7537282fb83b546823025b0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/apache/incubator-apisix-dashboard-built.git && \ | |
echo ">>>>> git clone successfully" && \ | |
cd ./incubator-apisix-dashboard-built && \ | |
git rm . -r && \ | |
cd ../dist && \ | |
for file in $(find . -type f \( -iname \*.js -o -iname \*.css \)); do | |
if [[ "$file" != *"service-worker.js" ]]; then | |
echo Processing $file | |
cat ../travis/LICENSE $file > $file.modified | |
mv $file.modified $file | |
fi | |
done | |
cat ../travis/LICENSE_HTML ./index.html > ./index.html.modified && \ | |
mv ./index.html.modified ./index.html && \ | |
cd .. && \ | |
/bin/cp -a ./dist/. ./incubator-apisix-dashboard-built && \ | |
/bin/cp ./LICENSE ./incubator-apisix-dashboard-built/LICENSE && \ | |
echo ">>>>> cp dist to built successfully" && \ | |
cd ./incubator-apisix-dashboard-built && \ | |
# git config --global user.name ${GIT_USER} && \ | |
# git config --global user.email ${GIT_MAIL} && \ | |
git add * && \ | |
git commit -m "update LICENSE & fix plugin error" && \ | |
git push "git@github.com:apache/incubator-apisix-dashboard-built.git" master:master | |
echo ">>>>> git push successfully" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/incubator-apisix-dashboard/travis/deploy.sh