diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 1e71d8d2..0cc81410 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -13,28 +13,37 @@ permissions: id-token: write jobs: - github-pages: + + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@1 with: - ruby-version: '3.4' + ruby-version: 3.4 bundler-cache: true - - uses: actions/configure-pages@v5 + - name: Setup Pages id: pages - - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - - uses: actions/upload-pages-artifact@v3 + uses: actions/configure-pages@v5 + - name: Build with Jekyll + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - needs: github-pages + needs: build steps: - - uses: actions/deploy-pages@v4 - id: deployment + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 # html-link-check: # needs: deploy