From 9d4947a6c3d0bcf9d12bcb681532018cf278f398 Mon Sep 17 00:00:00 2001 From: tomkiel Date: Mon, 29 Sep 2025 01:49:05 -0300 Subject: [PATCH 1/3] refactor: refresh github pages cache --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81f9d40..752c1eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,12 @@ jobs: - name: Build site run: make build + - name: Copy CNAME + run: | + if [ -f CNAME ]; then + cp CNAME ${{ env.PUBLISH_DIR }}/ + fi + - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v4 @@ -38,3 +44,10 @@ jobs: publish_dir: ${{ env.PUBLISH_DIR }} publish_branch: ${{ env.PUBLISH_BRANCH }} commit_message: "Deploy site to GitHub Pages - ${{ github.sha }}" + + - name: Refresh GitHub Pages Cache + if: github.ref == 'refs/heads/main' + run: | + curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ + https://api.github.com/repos/${{ github.repository }}/pages/builds From 52e74e62252a8b3d92f08905b5fd13cdbf9f63cb Mon Sep 17 00:00:00 2001 From: Python Sul <160618536+PySulBR@users.noreply.github.com> Date: Mon, 29 Sep 2025 01:51:28 -0300 Subject: [PATCH 2/3] Update .github/workflows/build.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 752c1eb..d91299c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,6 @@ jobs: - name: Refresh GitHub Pages Cache if: github.ref == 'refs/heads/main' run: | - curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/${{ github.repository }}/pages/builds From d4de5112d388a7672dd01561a71c360a27449a5a Mon Sep 17 00:00:00 2001 From: Python Sul <160618536+PySulBR@users.noreply.github.com> Date: Mon, 29 Sep 2025 01:51:40 -0300 Subject: [PATCH 3/3] Update .github/workflows/build.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d91299c..b7e877f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,4 +50,4 @@ jobs: run: | curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ - https://api.github.com/repos/${{ github.repository }}/pages/builds + https://api.github.com/repos/${{ github.repository }}/pages/builds || echo "Failed to refresh GitHub Pages cache"