generated from shbrief/ProjectAsPackage
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathupdate.sh
executable file
·31 lines (27 loc) · 902 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Use pkgdown to build a basic package website
## To create an initially empty gh-pages branch, where GitHub Pages will be deployed:
# git checkout --orphan gh-pages
# git rm -rf .
# git commit --allow-empty -m 'Initial gh-pages commit'
# git push origin gh-pages
# git checkout master
# ## For subsequent manual updates, if you are not using the procedure in .travis.yml
# Rscript --vanilla -e "pkgdown::build_site(lazy=TRUE)"
# git checkout --orphan gh-pages
# git pull origin gh-pages
# mv docs/* .
# rm -rf docs/
# git stage *
# git commit -m "update GitHub pages"
# git push origin gh-pages
## For GenomicSuperSignature package
Rscript --vanilla -e "pkgdown::build_site(lazy=TRUE)"
git checkout gh-pages
git pull origin gh-pages
cp -r docs/* .
rm -rf docs/
git stage *
git reset HEAD vignettes/*.rds # large data file
git commit -m "update GitHub pages"
git push origin gh-pages