Skip to content

Commit bfac123

Browse files
committed
add cache cleanup to the build script
1 parent 8caf963 commit bfac123

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tool/release.py

+6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ def publish_dry_run():
4343
subprocess.call('dart pub publish --dry-run', shell=True)
4444
subprocess.call('mv doc docs', shell=True)
4545

46+
def clean_up():
47+
subprocess.call('flutter clean', shell=True)
48+
subprocess.call('cd example', shell=True)
49+
subprocess.call('flutter clean', shell=True)
50+
4651
def main():
4752
bump_version()
4853
generate_docs()
4954
add_tag()
5055
publish_dry_run()
56+
clean_up()
5157
print("Congratulations! " + args.new + " is now ready to be released!")
5258

5359
if __name__ == '__main__':

0 commit comments

Comments
 (0)