Skip to content

Commit

Permalink
Merge pull request #1 from jeroen1602/create_publish_script
Browse files Browse the repository at this point in the history
Create publish script
  • Loading branch information
jeroen1602 authored May 22, 2021
2 parents c5b2b50 + a7c5e06 commit 4ae7280
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

if [[ "$(git update-index --refresh)" ]]; then
echo "There are changes in git, commit them first!"
exit 3
fi

echo "Removing unneeded folders"
rm -rfv chrome-experimental-launch || exit 4
rm -rfv scripts || exit 4
rm -rfv test || exit 4
rm -rfv example/test || exit 4
rm -rfv .idea || exit 4
rm -rfv publish.sh || exit 4
echo "Running pub publish"
flutter pub publish

echo "Reverting back to HEAD"
git reset --hard HEAD

0 comments on commit 4ae7280

Please sign in to comment.