diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6980a5d..9abd428 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,17 +21,24 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + 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@v5 - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./docs - destination: ./docs/_site + env: + JEKYLL_ENV: production + working-directory: ./docs + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: "/docs/_site" + path: "./docs/_site/" deploy: environment: