workflow/docs: Give token write permission to push gh-pages
The ostree repo has read permissions set for workflows, which prevents the documentation job from pushing the built docs to the gh-pages branch. Raise the job's permissions to write for repo contents to allow that.
This commit is contained in:
parent
27a3af6b1b
commit
bd42df4c9b
|
|
@ -10,6 +10,10 @@ jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Build documentation
|
name: Build documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
# This job pushes to the gh-pages branch, so the token needs write
|
||||||
|
# privileges for repo contents.
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue