-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.ps1
23 lines (17 loc) · 917 Bytes
/
deploy.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
rsync -aztP --exclude-from "ignore.list" --delete ~/note/ content
hugo -D
# publish-ghpages.
## add this line to .git/config
## [remote "blog-coding"]
## url = https://git.coding.net/ryn/blog.git
## fetch = +refs/heads/*:refs/remotes/origin/*
# git add -A
# git commit -m "update"
# git push origin master
# git checkout master # you can avoid this line if you are in master...
# git subtree split --prefix public -b gh-pages # create a local gh-pages branch containing the splitted output folder
# git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
# git push -f blog-coding gh-pages:master # force the push of the gh-pages branch to the remote gh-pages branch at origin
# git branch -D gh-pages # delete the local gh-pages because you will need it: ref
# publish-rsync
rsync -aztP public/* [email protected]:/var/www/www.futurestack.cn