From b75c06f1155c5383daef64d9c407f2f1c3375e4f Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:51:35 -1000 Subject: [PATCH 01/10] Update main.yml --- .github/workflows/main.yml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 167fcf0..2db634d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll site to Pages 2 @@ -33,20 +28,38 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 - with: - ruby-version: '3.1' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 0 # Increment this number if you need to re-download cached gems + + # Manually install Ruby using rbenv + - name: Install Ruby using rbenv + run: | + sudo apt-get update + sudo apt-get install -y libssl-dev zlib1g-dev + git clone https://github.com/rbenv/rbenv.git ~/.rbenv + echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc + echo 'eval "$(rbenv init -)"' >> ~/.bashrc + source ~/.bashrc + git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build + ~/.rbenv/bin/rbenv install 3.1.4 + ~/.rbenv/bin/rbenv global 3.1.4 + ~/.rbenv/bin/rbenv rehash + touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete + + # Install Bundler and cache gems + - name: Install Bundler + run: | + gem install bundler + bundle install + - name: Setup Pages id: pages uses: actions/configure-pages@v4 + - name: Build with Jekyll # 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 # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3 From c2d462ca330d6344cb9de70e874f7c1425d1fc6b Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:57:39 -1000 Subject: [PATCH 02/10] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2db634d..badebf2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,8 +42,8 @@ jobs: ~/.rbenv/bin/rbenv install 3.1.4 ~/.rbenv/bin/rbenv global 3.1.4 ~/.rbenv/bin/rbenv rehash - touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete - + # Removed the touch command for /opt/hostedtoolcache + # Install Bundler and cache gems - name: Install Bundler run: | From e7b90e9b3cc54c50b744a46bf5187af571827fb7 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:03:35 -1000 Subject: [PATCH 03/10] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index badebf2..08aec38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,12 +42,12 @@ jobs: ~/.rbenv/bin/rbenv install 3.1.4 ~/.rbenv/bin/rbenv global 3.1.4 ~/.rbenv/bin/rbenv rehash - # Removed the touch command for /opt/hostedtoolcache - # Install Bundler and cache gems + # Install Bundler and cache gems in the user's local directory - name: Install Bundler run: | - gem install bundler + gem install bundler --user-install + bundle config set path 'vendor/bundle' bundle install - name: Setup Pages From 86c69bf17793eb245816b28c2efc17813312e7b4 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:09:03 -1000 Subject: [PATCH 04/10] Update main.yml --- .github/workflows/main.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08aec38..53abc06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,6 +47,8 @@ jobs: - name: Install Bundler run: | gem install bundler --user-install + echo 'export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH"' >> ~/.bashrc + export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH" bundle config set path 'vendor/bundle' bundle install @@ -54,24 +56,4 @@ jobs: id: pages uses: actions/configure-pages@v4 - - name: Build with Jekyll - # 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 - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + - name: Build From c99c8ecf67b3e919a162fef1e09e173aca8f1880 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:13:03 -1000 Subject: [PATCH 05/10] Update main.yml --- .github/workflows/main.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53abc06..8962c97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,4 +56,24 @@ jobs: id: pages uses: actions/configure-pages@v4 - - name: Build + - name: Build with Jekyll + # 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 + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From d185d4cc5a214cdd0fd40769da627362fc577240 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:18:07 -1000 Subject: [PATCH 06/10] Update main.yml --- .github/workflows/main.yml | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8962c97..eb1a0bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,26 +54,4 @@ jobs: - name: Setup Pages id: pages - uses: actions/configure-pages@v4 - - - name: Build with Jekyll - # 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 - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + uses: From a990bbc478fa39352338420b2a5e5f0bbc98df19 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:21:11 -1000 Subject: [PATCH 07/10] Update main.yml --- .github/workflows/main.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb1a0bd..de2f965 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,12 +46,36 @@ jobs: # Install Bundler and cache gems in the user's local directory - name: Install Bundler run: | + source ~/.bashrc gem install bundler --user-install - echo 'export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH"' >> ~/.bashrc - export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH" + echo 'export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH"' >> ~/.bashrc + export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH" bundle config set path 'vendor/bundle' bundle install - name: Setup Pages id: pages - uses: + uses: actions/configure-pages@v4 + + - name: Build with Jekyll + run: | + source ~/.bashrc + export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH" + bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 040fddfe61a46f06cc74a677748a2191ac872660 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:26:46 -1000 Subject: [PATCH 08/10] Update main.yml --- .github/workflows/main.yml | 45 ++++++++++++-------------------------- 1 file changed, 14 insertions(+), 31 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de2f965..167fcf0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,8 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll site to Pages 2 @@ -28,44 +33,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - # Manually install Ruby using rbenv - - name: Install Ruby using rbenv - run: | - sudo apt-get update - sudo apt-get install -y libssl-dev zlib1g-dev - git clone https://github.com/rbenv/rbenv.git ~/.rbenv - echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc - echo 'eval "$(rbenv init -)"' >> ~/.bashrc - source ~/.bashrc - git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build - ~/.rbenv/bin/rbenv install 3.1.4 - ~/.rbenv/bin/rbenv global 3.1.4 - ~/.rbenv/bin/rbenv rehash - - # Install Bundler and cache gems in the user's local directory - - name: Install Bundler - run: | - source ~/.bashrc - gem install bundler --user-install - echo 'export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH"' >> ~/.bashrc - export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH" - bundle config set path 'vendor/bundle' - bundle install - + - name: Setup Ruby + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages id: pages uses: actions/configure-pages@v4 - - name: Build with Jekyll - run: | - source ~/.bashrc - export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH" - bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + # 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 + # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3 # Deployment job From c229ec1f7744b0a54718f6f319a20378ea6d4e19 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sun, 13 Oct 2024 13:31:01 -1000 Subject: [PATCH 09/10] Update main.yml From fa9514b6aa49c60ceb618d006df55b3e5d7d3550 Mon Sep 17 00:00:00 2001 From: Arianna Bunnell <88562918+AriBunnell@users.noreply.github.com> Date: Sun, 13 Oct 2024 13:34:57 -1000 Subject: [PATCH 10/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 167fcf0..d567868 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.161.0 with: ruby-version: '3.1' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically