diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 75bab5fa6..ee1def7e7 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -12,15 +12,11 @@ concurrency: cancel-in-progress: false jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + build: runs-on: ubuntu-latest permissions: contents: read pages: write - id-token: write steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -42,6 +38,10 @@ jobs: - name: Build site data & README run: pnpm run build + - name: Submit IndexNow for real-time search indexing + run: pnpm run indexnow + continue-on-error: true + - name: Setup Pages uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 @@ -50,11 +50,17 @@ jobs: with: path: site + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.0 - - name: Submit IndexNow for real-time search indexing - run: pnpm run indexnow - continue-on-error: true -