mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +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:
parent
e6920f7c12
commit
a2580a7bca
1 changed files with 4 additions and 1 deletions
5
.github/workflows/documentation.yaml
vendored
5
.github/workflows/documentation.yaml
vendored
|
@ -8,6 +8,9 @@ on:
|
||||||
env:
|
env:
|
||||||
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
|
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and publish documentation
|
name: Build and publish documentation
|
||||||
|
@ -31,7 +34,7 @@ jobs:
|
||||||
cmake --build build --target GenerateDocs
|
cmake --build build --target GenerateDocs
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build/doxygen/html
|
publish_dir: ./build/doxygen/html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue