Skip to content

Commit cff6300

Browse files
committed
remove docs-deploy from publish.yml and create a separate docs.yml that triggers on push to main
1 parent c0ddee9 commit cff6300

2 files changed

Lines changed: 28 additions & 21 deletions

File tree

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy MkDocs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
docs-deploy:
11+
name: Deploy docs
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install docs dependencies
25+
run: pip install mkdocs-material pymdown-extensions
26+
27+
- name: Deploy docs
28+
run: mkdocs gh-deploy --force

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,3 @@ jobs:
6363
user: __token__
6464
password: ${{ secrets.PYPI_API_TOKEN }}
6565
verbose: true
66-
67-
docs-deploy:
68-
name: Deploy MkDocs to GitHub Pages
69-
runs-on: ubuntu-latest
70-
needs: unittest
71-
permissions:
72-
contents: write
73-
74-
steps:
75-
- uses: actions/checkout@v4
76-
77-
- name: Set up Python
78-
uses: actions/setup-python@v5
79-
with:
80-
python-version: '3.x'
81-
82-
- name: Install docs dependencies
83-
run: pip install mkdocs-material pymdown-extensions
84-
85-
- name: Deploy docs
86-
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)