Add publish to github tools

This commit is contained in:
niusmallnan 2021-04-17 12:45:22 +08:00
parent 25a8afe005
commit a0a6974500

17
scripts/tools/publish.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
echo "basedir: $1, version: $2"
echo "to publish release to github, run push-github.sh"
echo "#!/bin/bash"> push-github.sh
echo "#"
echo "# GITHUB_TOKEN=xxx ./push-github.sh"
echo "#"
echo "pushd $1"
#echo "hub release create -t ${COMMIT} -m v${RELEASE_VERSION} v${RELEASE_VERSION}" >> dist/publish.sh
echo "for f in \$(ls $1/bin/) ; do" >> push-github.sh
echo " hub release edit -m $2 -a $1/bin/\${f} $2" >> push-github.sh
echo "done" >> push-github.sh
echo "popd"
chmod +x push-github.sh