File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish Develop Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - develop
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : 3.x
17+ - run : pip install -r requirements/build-docs.txt
18+ - name : Publish Develop Docs
19+ run : |
20+ git config user.name github-actions
21+ git config user.email github-actions@github.com
22+ cd docs
23+ mike deploy --push develop
Original file line number Diff line number Diff line change 1+ name : Publish Release Docs
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+ - uses : actions/setup-python@v5
15+ with :
16+ python-version : 3.x
17+ - run : pip install -r requirements/build-docs.txt
18+ - name : Publish ${{ github.event.release.name }} Docs
19+ run : |
20+ git config user.name github-actions
21+ git config user.email github-actions@github.com
22+ cd docs
23+ mike deploy --push --update-aliases ${{ github.event.release.name }} latest
You can’t perform that action at this time.
0 commit comments