File tree Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ token : ' ${{ secrets.PERSONAL_ACCESS_TOKEN }}'
15
+ fetch-depth : 0
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v1
18
+ with :
19
+ python-version : ' 3.x'
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install -U mkdocs mkdocs-material
23
+ - name : Build docs
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ run : |
27
+ python -m mkdocs build
28
+ - name : Push doc to Github Page
29
+ uses : peaceiris/actions-gh-pages@v2
30
+ env :
31
+ PERSONAL_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32
+ PUBLISH_BRANCH : gh-pages
33
+ PUBLISH_DIR : ./site
Original file line number Diff line number Diff line change @@ -22,17 +22,10 @@ jobs:
22
22
python -m pip install --pre -U poetry mkdocs mkdocs-material
23
23
poetry --version
24
24
poetry install
25
- - name : Build and publish
25
+ - name : Publish
26
26
env :
27
27
PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
28
28
PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
29
run : |
31
30
./scripts/publish
32
- poetry run mkdocs build
33
- - name : Push doc to Github Page
34
- uses : peaceiris/actions-gh-pages@v2
35
- env :
36
- PERSONAL_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
37
- PUBLISH_BRANCH : gh-pages
38
- PUBLISH_DIR : ./site
31
+
You can’t perform that action at this time.
0 commit comments