MarkEdmondson1234 / markedmondson.me-hugo

Files for the website
0 stars 2 forks source link

Auto Travis build #2

Closed MarkEdmondson1234 closed 3 years ago

MarkEdmondson1234 commented 7 years ago

Run the deploy script upon a github push

MarkEdmondson1234 commented 7 years ago

So far:

language: r
cache: packages
# Handle git submodules yourself
git:
    submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
    - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
    - git submodule update --init --recursive
    ## non R-package installation
    - Rscript -e 'install.packages("devtools")'
    - Rscript -e 'devtools::install_github("rstudio/blogdown")'
install: 
 - Rscript -e 'blogdown::install_hugo()'
 - Rscript -e 'blogdown::install_theme("digitalcraftsman/hugo-icarus-theme")'
script: ./deploy.sh
after_success: echo "Done"

False positive success https://travis-ci.org/MarkEdmondson1234/markedmondson.me-hugo/builds/194266425

MarkEdmondson1234 commented 7 years ago

May not bother and just use the build button