diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e258f8d57..5c69d0928 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,39 +30,33 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: - ruby-version: '3.3' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically + ruby-version: '3.3' + bundler-cache: true cache-version: 0 # Increment this number if you need to re-download cached gems working-directory: docs - name: Setup Pages id: pages uses: actions/configure-pages@v5 - name: Build with Jekyll - # Outputs to the './_site' directory by default working-directory: docs run: bundle exec jekyll build 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 - - name: Confirm page URL - env: - PAGES_URL: ${{ steps.pages.outputs.url }} - run: echo "The site will be available at $PAGES_URL" # We're not deploying yet, as we're making sure the build is successful first # 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 + 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