forked from Cornerstone-OnDemand/modelkit
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.16 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: docs
on:
workflow_run:
workflows: ["CI"]
types:
- completed
jobs:
docs:
name: Deploy docs
runs-on: ubuntu-latest
if: ${{github.ref == 'refs/heads/main'}}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: pip install mkdocs-material mkdocs-git-revision-date-localized-plugin
- name: Build and deploy docs
run: mkdocs gh-deploy --force
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: gh-pages
- name: Download Coverage Report
uses: dawidd6/action-download-artifact@v2
with:
workflow: main.yml
name: coverage
path: coverage
- name: Push Coverage Report
run: |
git config user.name github-actions
git config user.email [email protected]
git add coverage
git commit -m "add coverage report"
git push