git-flight-rules icon indicating copy to clipboard operation
git-flight-rules copied to clipboard

Deploy to GitHub Pages with Travis-CI

Open cmccandless opened this issue 6 years ago • 8 comments

As primary content of this repository is, this is an excellent candidate for using GitHub Pages.

Benefits:

  • Optional theme
  • Faster load time
    • No need to load GitHub site itself
    • Markdown is pre-rendered as HTML

See the following links for details on setup (automatic deployment will require maintainer action)

cmccandless avatar Oct 18 '18 13:10 cmccandless

Hi I would like to work on this issue. I will update here once I have some progress :smiley:

123survesh avatar Oct 22 '18 07:10 123survesh

Need to know about any other solutions

outfire1001 avatar Oct 23 '18 10:10 outfire1001

Feel free to work on it. My requirements are:

  • No extra files in the main branch
  • No need for me to update the jekyll pages branch when I update the main branch
  • An easily customizable theme, preferably one of the default ones

RichardLitt avatar Oct 24 '18 08:10 RichardLitt

Hi, I am new to this, can someone tell me if I am doing things right? This is what I have done so far.

I added the following code to travis.yml

deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN  # I added my repos secret key here
  keep-history: true
  on:
    branch: gh-pages

I have been testing this process on my forked repo using travis CI. Travis CI needs a personal access token for the repository we are doing deployment for. Now every time I run make a push, Travis CI executes the yaml file and creates a build.

And for the github pages part of it, we have to go to the repository settings and set it up. Also the theme chooser is situated there, where I chose the theme. image

I have created a PR with the above changes. Do tell if it does the job. #244

123survesh avatar Oct 28 '18 18:10 123survesh

Ping @k88hudson. We need your help here.

RichardLitt avatar Nov 28 '18 14:11 RichardLitt

@k88hudson Are you still interested in maintaining this repository?

RichardLitt avatar Jun 20 '19 09:06 RichardLitt

I went ahead and forked this repo and deployed it myself. I have not and will not modify any of the content, and plan to delete my fork when/if this repo deploys.

cmccandless avatar Jun 20 '19 12:06 cmccandless

Looks good to me! Hopefully we can deploy it too. I would, but I don't have access at the moment.

I'd encourage anyone who wants to see this content to check out firstaidgit.io, too. A beautiful website made by my friend Ricardo that also has this content.

RichardLitt avatar Jun 20 '19 13:06 RichardLitt