1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 13:41:13 +02:00

Fix GitHub pages

As `peaceiris/actions-gh-pages` README describes, the `permissions / contents / write` definition is required. In other hand, without that, the step will fail. Also a jump to the version 4 is recommended. Basically because i did a test and previous version, as-is doesn't work.
This commit is contained in:
Ian Torres 2024-07-31 03:51:38 -04:00 committed by GitHub
parent e6920f7c12
commit a2580a7bca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,9 @@ on:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
permissions:
contents: write
jobs:
build:
name: Build and publish documentation
@ -31,7 +34,7 @@ jobs:
cmake --build build --target GenerateDocs
- name: Publish
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html