Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy thanks to Github action #22

Closed
arnolanglade opened this issue Mar 20, 2023 · 3 comments
Closed

Deploy thanks to Github action #22

arnolanglade opened this issue Mar 20, 2023 · 3 comments

Comments

@arnolanglade
Copy link

arnolanglade commented Mar 20, 2023

Hi,

I revamp my website with this template and I tried to deploy it thanks to GitHub actions but I got a lot of permission errors :

Configuration file: /github/workspace/site/_config.yml
          Bookshop: Parsing Stories from /github/workspace/components/components
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-164uv6xjs
                    Permission denied - /tmp/node_runner20230320-2177-164uv6xjs
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-io84lcjs
                    Permission denied - /tmp/node_runner20230320-2177-io84lcjs
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-1s4xls4js
                    Permission denied - /tmp/node_runner20230320-2177-1s4xls4js
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-pq21f1js
                    Permission denied - /tmp/node_runner20230320-2177-pq21f1js
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-zg71q5js
                    Permission denied - /tmp/node_runner20230320-2177-zg71q5js
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-5jzvxvjs
          Bookshop: ❌ Error Parsing Story: Permission denied - /tmp/node_runner20230320-2177-c2x7vmjs

Here is the full build: https://github.com/arnolanglade/arnolanglade.github.io/actions/runs/4473071177/jobs/7859995346

I tried https://github.com/helaili/jekyll-action and https://github.com/jeffreytse/jekyll-deploy-action and I got those errors.

I don't understand why Bookshop tries to write things in /tmp.

Thanks for your help.

@arnolanglade
Copy link
Author

@adriguerra
Copy link

adriguerra commented Jan 10, 2024

Thanks for sharing your workflow @arnolanglade
I just want to point out to anyone who may try replicating it that all .toml files from the components folder were deleted for it to run successfully (even though locally the build seems to work for me).

Also, for the first deployment run you may need to do the following: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-first-deployment-with-github_token

@PrakritTyagi
Copy link

PrakritTyagi commented Aug 24, 2024

Thanks for your workflow @arnolanglade and @adriguerra for further information.

My workflow failed and presented with this error on using the above workflow without any changes to it and to the repo. Locally building the repo on ubuntu I had no issue.

Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/main.scss':
                    Broken pipe
                    ------------------------------------------------
      Jekyll 4.3.3   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------
/usr/gem/gems/sass-embedded-1.63.6/lib/sass/embedded/varint.rb:35:in `write': Broken pipe (Errno::EPIPE)

It seems there is a issue with the docker image and sass-converter and there has been no movement to fix it
jekyll/jekyll-sass-converter#156
envygeeks/jekyll-docker#363

Solution is to use this docker image https://hub.docker.com/r/jvconseil/jekyll-docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants