Skip to content

Commit e4fbf9f

Browse files
committed
Add write permissions
1 parent bb52b77 commit e4fbf9f

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Deploy MkDocs site
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
branches:
@@ -13,7 +16,14 @@ jobs:
1316
- name: Checkout repository
1417
uses: actions/checkout@v3
1518

16-
- name: Deploy docs
17-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install -r requirements.txt
27+
28+
- name: Build and deploy MkDocs site
29+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)