diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml new file mode 100644 index 0000000..1ef3290 --- /dev/null +++ b/.github/actions/build/action.yml @@ -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 diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e31d81c..8d9adf1 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -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 @@ -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 diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 939d6e5..31af253 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -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 \ No newline at end of file diff --git a/_config.yml b/_config.yml index 75f1b32..484b784 100644 --- a/_config.yml +++ b/_config.yml @@ -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