diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e0edd047..408e517bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -116,14 +116,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Rebuild GitHub Pages for new release + - name: Trigger GitHub Pages rebuild run: | - # Create a dummy commit to trigger rebuild - git checkout gh-pages - touch README.md - git add README.md - git commit -m "Trigger rebuild for v${{ steps.extract_version.outputs.version }}" - git push origin gh-pages + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ + https://api.github.com/repos/${{ github.repository }}/pages/builds