-1

I don't know how to solve this issue, people online had pointed out that it may have something to do with baseurl:, typing the name of my site there or leaving it empty doesn't seem to be working. People had also pointed out changing theme on the config.yml to "remote_theme", that also didn't work

Please have a look at my code, any ideas? I wish I had more information in regards to why this happens

Repo: https://github.com/SimonXTest/simonxtest.github.io

You'll know it's the right repo because there should be a broken.txt in the directory

Remote website image:

Remote website image

Local website image:

Local website image

Simon X
  • 1
  • 1

1 Answers1

0

Try to add to your GitHub workflow the bundle-install statement. The rubygems (for the theme) are missing.

You don't have the _layout folder in your source control, so you need to get it from the gems.

In your GitHub Workflow / Action you should do something like this:

jobs:
  bundler:

    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0
          bundler-cache: true
          
      - name: Installing dependencies
        run: bundle install
halfer
  • 19,824
  • 17
  • 99
  • 186
KargWare
  • 1,746
  • 3
  • 22
  • 35
  • how would I do this? I am not familiar with running and configuring workflows on github. – Simon X Oct 13 '21 at 00:15
  • When I visit - https://simonxtea.github.io/ you **did** it. It works! In the code you have updated the workflow (githib action) the right way. – KargWare Oct 13 '21 at 03:22
  • Oh no, sorry KargWare, I rolled back to a working version of my site. The broken version is now offline (the broken version uses the chirpy theme, not the default theme). The new repo is on https://github.com/SimonXTea/simonxtea.github.io-broken. Sorry, I should had updated you in the comments. The reason for this is that I want to keep working on the sites and the posts, since I want to use this website for job hunting, I can still bring back the broken version but only temporarily to fix this issue. If this gets fixed, the broken version will be permanently online – Simon X Oct 13 '21 at 05:33
  • I'll try the edit you made in your solution – Simon X Oct 13 '21 at 05:37
  • It's still not working, I edited the file called "pages-deploy". Please see here https://github.com/SimonXTea/simonxtea.github.io/blob/main/.github/workflows/pages-deploy.yml, the file should say "#Hi KargWare" to let you know that you are on the right repo (if it doesn't say that, try https://github.com/SimonXTea-broken/simonxtea-broken.github.io/blob/main/.github/workflows/pages-deploy.yml) – Simon X Oct 13 '21 at 06:06
  • The error I get is "Gemfile not found". After I got that error, I tried running "BUNDLE_GEMFILE="Gemfile" bundle install" instead. This also didn't work, I get this error when I do that: [!] There was an error parsing `Gemfile`: No such file or directory @ rb_sysopen - /home/runner/work/simonxtea.github.io/simonxtea.github.io/Gemfile. Bundler cannot continue. Error: Process completed with exit code 4. – Simon X Oct 13 '21 at 06:44