File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,24 @@ def repo_handler(build_no, comm_message):
28
28
#pushes to github
29
29
30
30
os .system ("git checkout master" )
31
+
31
32
os .system ("rm -rf ./*" )
32
33
print ("\n * Removed files inside master branch......" + "\n -------------------------" )
33
- os .system ("git addcomm -m \" " + build_no + " : " + comm_message + " | part 1\" " )
34
+
35
+ os .system ("git addcomm -m \" Build No.: " + build_no + " :: " + comm_message + " | part 1\" " )
36
+ print ("\n \n " )
37
+
34
38
os .system ("cp -r ../temp/* ./" )
35
39
print ("\n * Added build files inside master branch......" + "\n -------------------------" )
36
- os .system ("git addcomm -m \" " + build_no + " : " + comm_message + " | part 2\" " )
40
+
41
+ if (os .path .isdir ("./_site/" )):
42
+ print ("\n * _site/ folder exists, deleting the folder......" + "\n -------------------------" )
43
+ os .system ("rm -rf ./_site" )
44
+ print ("\n * _site/ deleted" + "\n -------------------------\n " )
45
+
46
+ os .system ("git addcomm -m \" Build No.: " + build_no + " :: " + comm_message + " | part 2\" " )
47
+ print ("\n \n " )
48
+
37
49
print ("\n * Pushing to GitHub" + "\n -------------------------" )
38
50
os .system ("git push origin master" )
39
51
You can’t perform that action at this time.
0 commit comments