diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9666ea4..b4fe243 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' # Not needed with a .ruby-version file bundler-cache: false # runs 'bundle install' and caches installed gems automatically + + - name: Install bundle and jeckyll + run: gem install jekyll bundler + + - name: Install dependencies + run: bundle install + - name: Build with Jekyll run: bundle exec jekyll build diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8f53b06..0ee8e0c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,19 +31,29 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' # Not needed with a .ruby-version file bundler-cache: false # runs 'bundle install' and caches installed gems automatically + - name: Setup Pages id: pages uses: actions/configure-pages@v5 + + - name: Install bundle and jeckyll + run: gem install jekyll bundler + + - name: Install dependencies + run: bundle install + - 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