k88hudson / git-flight-rules

Flight rules for git
Creative Commons Attribution Share Alike 4.0 International
41.91k stars 3.19k forks source link

Deploy to GitHub Pages with Travis-CI #230

Open cmccandless opened 6 years ago

cmccandless commented 6 years ago

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

Benefits:

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

123survesh commented 6 years ago

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

outfire1001 commented 6 years ago

Need to know about any other solutions

RichardLitt commented 6 years ago

Feel free to work on it. My requirements are:

123survesh commented 6 years ago

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

RichardLitt commented 5 years ago

Ping @k88hudson. We need your help here.

RichardLitt commented 5 years ago

@k88hudson Are you still interested in maintaining this repository?

cmccandless commented 5 years ago

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.

RichardLitt commented 5 years ago

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.