Skip to content

Instantly share code, notes, and snippets.

@juzhiyuan
Last active October 30, 2019 08:55
Show Gist options
  • Save juzhiyuan/fb1cbedd7537282fb83b546823025b0a to your computer and use it in GitHub Desktop.
Save juzhiyuan/fb1cbedd7537282fb83b546823025b0a to your computer and use it in GitHub Desktop.
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"
@juzhiyuan
Copy link
Author

juzhiyuan commented Oct 30, 2019

/incubator-apisix-dashboard/travis/deploy.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment