Skip to content

Commit 87796b8

Browse files
add workflows for new docs deployment
1 parent c2b16cf commit 87796b8

File tree

4 files changed

+80
-29
lines changed

4 files changed

+80
-29
lines changed

.github/workflows/beta-docs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build/Publish Latest Release Docs
2+
3+
on:
4+
release:
5+
types: [prereleased]
6+
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.x
19+
- name: Install Dependencies
20+
run: |
21+
pip install -r requirements.txt
22+
- name: Setup Docs Deploy
23+
run: |
24+
git config user.name github-actions[bot]
25+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
26+
- name: Build Docs Website
27+
run: mike deploy --push --update-aliases ${{ github.event.release.tag_name }} beta

.github/workflows/ci.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/dev-docs-ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build/Publish Develop Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: 3.x
18+
- name: Install Dependencies
19+
run: |
20+
pip install -r requirements.txt
21+
- name: Setup Docs Deploy
22+
run: |
23+
git config user.name github-actions[bot]
24+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
25+
- name: Build Docs Website
26+
run: mike deploy --push develop
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build/Publish Latest Release Docs
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.x
19+
- name: Install Dependencies
20+
run: |
21+
pip install -r requirements.txt
22+
- name: Setup Docs Deploy
23+
run: |
24+
git config user.name github-actions[bot]
25+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
26+
- name: Build Docs Website
27+
run: mike deploy --push --update-aliases ${{ github.event.release.tag_name }} latest

0 commit comments

Comments
 (0)