diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5b812546..e459515f 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -36,26 +36,37 @@ 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: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems - working-directory: '${{ github.workspace }}/docs' + + - name: Configure Bundler + run: | + bundle config --local path vendor/bundle + bundle config --local deployment true + bundle lock --add-platform x86_64-linux + + - name: Install dependencies + run: bundle install --jobs 4 + - name: Setup Pages id: pages uses: actions/configure-pages@v5 + - 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 with: - path: "docs/_site/" + path: "_site/" # Deployment job deploy: