diff --git a/.github/workflows/patchthis.yml b/.github/workflows/patchthis.yml index afe3b803..496a0224 100644 --- a/.github/workflows/patchthis.yml +++ b/.github/workflows/patchthis.yml @@ -226,7 +226,7 @@ jobs: id-token: write environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url || steps.deployment_retry.outputs.page_url }} steps: - uses: actions/checkout@v7 with: @@ -237,6 +237,18 @@ jobs: uses: actions/upload-pages-artifact@v5 with: path: 'web' + # deploy-pages intermittently fails with "Fetching artifact metadata failed" + # even after a successful upload. Retry once after a short wait. - name: Deploy to GitHub Pages id: deployment + continue-on-error: true + uses: actions/deploy-pages@v5 + + - name: Wait before retrying deploy + if: steps.deployment.outcome == 'failure' + run: sleep 60 + + - name: Deploy to GitHub Pages (retry) + id: deployment_retry + if: steps.deployment.outcome == 'failure' uses: actions/deploy-pages@v5