Skip to content

Commit 28adab8

Browse files
committed
workflow to auto-publishing docs
1 parent 81bb5ff commit 28adab8

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)