Skip to content

Commit c01ea01

Browse files
authored
fix: Update doc publish workflow permissions (#1698)
1 parent 3cc4678 commit c01ea01

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- 'docs/**'
8-
- mkdocs.yml
9-
- README.md
10-
- '.github/workflows/publish-docs.yml'
11-
release:
12-
types:
13-
- published
146

157
env:
168
PYTHON_VERSION: 3.x
@@ -22,6 +14,8 @@ jobs:
2214
build:
2315
name: Deploy docs
2416
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
2519
steps:
2620
- name: Harden Runner
2721
uses: step-security/harden-runner@v2
@@ -42,7 +36,7 @@ jobs:
4236
run: |
4337
python -m pip install --upgrade pip
4438
pip install mike==1.1.2 \
45-
mkdocs-material==9.1.4 \
39+
mkdocs-material==9.1.19 \
4640
mkdocs-include-markdown-plugin==4.0.4 \
4741
mkdocs-awesome-pages-plugin==2.9.1
4842

0 commit comments

Comments
 (0)