From b0d531b6605904509e7fa42869c8a2dc3f99378a Mon Sep 17 00:00:00 2001 From: Yufree Date: Sat, 27 Jan 2018 22:01:48 -0500 Subject: [PATCH] fix build issue --- .travis.yml | 6 ++++-- DESCRIPTION | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ad5c4be67..43e18f62cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ cache: packages r_github_packages: - cran/yaml - yufree/scifetch +- rstudio/blogdown before_install: - git config --global user.email "yufree@live.cn" - git config --global user.name "yufree" @@ -16,8 +17,9 @@ after_success: - git commit -m "Daily update" - git push -q https://${GITHUB_PAT}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master - curl --include --request POST --data '{"title":"Created via API","body":"daily update","head":"yufree:master","base":"master"}' "https://api.github.com/repos/jpgroup/daily/pulls?access_token=${GITHUB_PAT}" +- Rscript -e 'blogdown::install_hugo();blogdown::build_site()' - mkdir docs - cp -r ./public/* ./docs/ - git add --all * -- git commit -m "Update the book" || true -- git push origin master \ No newline at end of file +- git commit -m "Update the demo" || true +- git push -q https://${GITHUB_PAT}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master \ No newline at end of file diff --git a/DESCRIPTION b/DESCRIPTION index 103bda7771..7bd01c7458 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: placeholder Title: DailyR Version: 0.0.1 -Imports: yaml +Imports: yaml, blogdown Remotes: yufree/scifetch \ No newline at end of file