Skip to content

Commit 4ae7280

Browse files
authored
Merge pull request #1 from jeroen1602/create_publish_script
Create publish script
2 parents c5b2b50 + a7c5e06 commit 4ae7280

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

publish.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ "$(git update-index --refresh)" ]]; then
4+
echo "There are changes in git, commit them first!"
5+
exit 3
6+
fi
7+
8+
echo "Removing unneeded folders"
9+
rm -rfv chrome-experimental-launch || exit 4
10+
rm -rfv scripts || exit 4
11+
rm -rfv test || exit 4
12+
rm -rfv example/test || exit 4
13+
rm -rfv .idea || exit 4
14+
rm -rfv publish.sh || exit 4
15+
echo "Running pub publish"
16+
flutter pub publish
17+
18+
echo "Reverting back to HEAD"
19+
git reset --hard HEAD

0 commit comments

Comments
 (0)