Fahri NH

Plan the Future, Do the Day, Learn the Past

Jul 22, 2017 - 2 minute read - Comments - Drafts

Static Blog dengan Hugo, Github Pages (Travis CI, Cloudflare)


Travis CI

 1 2 3 4 5 6 7 8 91011121314151617181920212223242526
language: go

  - master # This uses automatically the latest version of go

  - pip install --user pygments
  - go get github.com/spf13/hugo # This provides the latest version of Hugo to Travis CI

  - hugo version
  - hugo --theme=hugo-pacman-theme # This commands builds your website on travis
  - cp CNAME public
  - ls public

  local_dir: public # Default static site output dir for Hugo
  repo: fahrinh/fahrinh.github.io # This is the slug of the repo you want to deploy your site to
  target_branch: master # GitHub pages branch to deploy to (in other cases it can be gh-pages)
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # This is the authentication which you will setup in the next step in travis-ci dashboard
  email: [email protected]
  name: "Fahri Nurul Hidayat"
    branch: master


  • Setup DNS pertama kali dengan root domain nurul.id
  • Ganti nameserver hosting provider Anda dengan nameserver milik Cloudflare
  • Pada Crypto, enable Always use HTTPS dan Automatic HTTPS Rewrites

Sumber: https://martinkaptein.github.io/blog/hugo-with-travis-ci-on-gh-pages/

Tags: Hugo Github Pages Travis CI

Hello World Oracle XE 11g dengan Docker

comments powered by Disqus