Skip to content

Commit beb5b0d

Browse files
committed
fix: Fix docs workflow
1 parent ebf18a8 commit beb5b0d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11-
- name: List directories
12-
run: ls -al
13-
1411
- name: Setup JDK 1.8
1512
uses: actions/setup-java@v1
1613
with:
@@ -19,7 +16,7 @@ jobs:
1916
- name: Set up Python
2017
uses: actions/setup-python@v2
2118
with:
22-
python-version: '3.x'
19+
python-version: '3.8'
2320

2421
- name: Setup Python dependencies
2522
run: pip3 install --upgrade pip && pip3 install -r ./docs/requirements.txt
@@ -28,10 +25,17 @@ jobs:
2825
run: gradle dokkaGfm
2926

3027
- name: Cleanup existing docs
31-
run: rm -rf docs/docs/docs/api && mkdir docs/docs/api
28+
run: rm -rf docs/docs/docs/api && mkdir docs/docs/docs/api
3229

3330
- name: Copy generated docs
3431
run: cp -r build/dokka/coroutines-network-response-adapter/* docs/docs/docs/api
3532

3633
- name: Build mkdocs website
37-
run: cd ./docs/docs && mkdocs build
34+
run: cd ./docs/docs && mkdocs build --clean --verbose
35+
36+
- name: Deploy mkdocs website
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: docs/docs/site
41+
publish_branch: gh-pages

0 commit comments

Comments
 (0)