Skip to content

Instantly share code, notes, and snippets.

View Zanark's full-sized avatar
👨‍💻
Back to work

Debashish Mishra Zanark

👨‍💻
Back to work
View GitHub Profile
@Zanark
Zanark / jekyll-site-build-and-push.py
Created August 12, 2019 12:30
Build jekyll static files in a temporary folder then copies changes to master branch and pushes changes to github.
import os
def jekyll_builder(cwd):
#first push to jekyll branch
#asks for build no
#asks for commit message
#creates a ../temp folder
#builds site inside that folder
#os.system("git push origin jekyll")