Skip to content

Commit 858b070

Browse files
committed
Add write permission to config yaml
1 parent f77e33f commit 858b070

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/mkdocs.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1-
# Deploy MkDocs Documentation
21
name: Deploy Docs
32

43
on:
54
push:
6-
branches: [ main ]
5+
branches: [main]
76
workflow_dispatch:
87

8+
permissions:
9+
contents: write
10+
911
jobs:
1012
deploy:
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v4
14-
16+
1517
- name: Set up Python
1618
uses: actions/setup-python@v5
1719
with:
18-
python-version: '3.11'
19-
20+
python-version: "3.11"
21+
2022
- name: Install Poetry
2123
uses: snok/install-poetry@v1
2224
with:
2325
version: latest
2426
virtualenvs-create: true
2527
virtualenvs-in-project: true
26-
28+
2729
- name: Install dependencies
2830
run: poetry install --with dev
29-
31+
3032
- name: Build docs
3133
run: poetry run mkdocs build
32-
34+
3335
- name: Deploy to GitHub Pages
3436
uses: peaceiris/actions-gh-pages@v4
3537
with:

0 commit comments

Comments
 (0)