Skip to content

Commit

Permalink
Merge pull request #4 from traboda/3-fix-the-failing-ci-deploy-jekyll…
Browse files Browse the repository at this point in the history
…-with-github-pages-dependencies-preinstalled

PR: Fix failing CI
  • Loading branch information
seshagiriprabhu authored Oct 6, 2024
2 parents 52e48a3 + d2cd314 commit d4064bc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: build
description: "Setup Gem"

runs:
using: composite
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
cache-version: 0
- name: Install gem requirements
run: bundle install
shell: bash
13 changes: 8 additions & 5 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy Jekyll with GitHub Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -29,12 +29,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Set up gem, bundle, and install bundle dependencies
uses: ./.github/actions/build
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
cache-version: 0
- name: Install gem requirements
run: bundle install
- name: Set up gem, bundle, and install bundle dependencies
uses: ./.github/actions/build
- name: Build with Jekyll
run: bundle exec jekyll build
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ enable_copy_code_button: true
# Footer "Edit this page on GitHub" link text
gh_edit_link: true # show or hide edit this page link
gh_edit_link_text: "Edit this page on GitHub"
gh_edit_repository: "https://github.com/traboda/tech-stack-task-list" # the github URL for your repo
gh_edit_repository: "https://github.com/traboda/samavarthana/" # the github URL for your repo
gh_edit_branch: "main" # the branch that your docs is served from
# gh_edit_source: docs # the source that your files originate from
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
Expand Down

0 comments on commit d4064bc

Please sign in to comment.