Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

github-pages plugin requires Github credentials even for local builds #1

Open
CristianCantoro opened this issue Jan 29, 2018 · 1 comment

Comments

@CristianCantoro
Copy link

CristianCantoro commented Jan 29, 2018

Hi,

I want to set-up a single-page website and I have used Solo in the past, but I saw that it is now deprecated, so I tried duo.

I have cloned this repo and tried to build the site:

$ bundle exec jekyll serve
Configuration file: /path/to/site/_config.yml
            Source: /path/to/site
       Destination: /path/to/site/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
   GitHub Metadata: No GitHub API authentication could be found. Some fields
                    may be missing or have incorrect data.
   GitHub Metadata: Error processing value 'description':
  Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration,
                    or set up an 'origin' git remote pointing to your github.com repository. in /_layouts/default.html
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration,
                    or set up an 'origin' git remote pointing to your github.com repository.

I have tried adding a blank repository setting in _config.yml [1] to solve the issue, i.e.:

repository:

However I was running into this other problem:

  Dependency Error: Yikes! It looks like you don't have jekyll-feed or one of its dependencies installed.
In order to use Jekyll as currently configured, you'll need to install this gem.
The full error message from Ruby is: 'cannot load such file -- jekyll-feed' If you run into trouble,
you can find helpful resources at https://jekyllrb.com/help/! 

A solution for this issue [1] has been to remove the github-pages plugin and the plugins from the Gemfile, so I deleted the following line:

gem 'github-pages', group: :jekyll_plugins

and added the following:

gem 'jekyll'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
gem 'jemoji'
gem 'jekyll-readme-index'

and in the end I was able to build the site locally.

Thank you.

@CristianCantoro CristianCantoro changed the title github-pages requires Github credentials even for local builds github-pages plugin requires Github credentials even for local builds Jan 29, 2018
@roycan
Copy link

roycan commented Sep 15, 2018

thank you! now gh-pages and local both work for me. :D

Whispres added a commit to Whispres/whispres.github.io that referenced this issue Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants