Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 465 Bytes
#!/usr/bin/swift sh
import Foundation
import ShellOut // @JohnSundell ~> 2.2
do {
// commit files in a text bundle contained in the working copy
try shellOut(to: "git add *.textbundle/**")
try shellOut(to: .gitCommit(message: "New Post"))
try shellOut(to: .gitPush())
// ssh in to, at the directory of the website
// run git pull
try shellOut(to: "ssh 'cd /var/www/; git fetch && git pull'")
You can’t perform that action at this time.