How to install a new Gem and deploy it with Github Actions ? #2843
Unanswered
PierreExeter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to install a new Gem called
jekyll-redirect-from
, which allows me to redirect a path to an external URL.Here's what I did :
jekyll-redirect-from
plugin in the_config.yml
fileredirect_to: <ULR>
in the YAML front matter of the page I want to redirect.$ docker compose up --build --force-recreate
When I run the Docker image locally, I can successfully redirect the page to the external URL.
However, when I commit and push the changes to the GitHub repository, the redirection does not work.
There is no build or deployment error when I check the Actions Workflow tab in the GitHub repository.
I'm guessing it is because GitHub Pages does not support this gem by default, and that I need to set up the GitHub Action workflow to install this Gem in GitHub Pages.
My guess is that I need to add run: bundle install somewhere in .github/workflows/deploy.yml, but I don't know where.
How can I install a new Gem and deploy it using Github Actions ?
Here is my repo.
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions