Skip to content

Commit 4a448a2

Browse files
NaN
1 parent 0baaf47 commit 4a448a2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Mkdocs Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
mike-deploy:
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
token: ${{ secrets.GITHUBTOKEN }}
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements/requirements.txt
23+
pip install mike==1.1.2
24+
python -m pip install --upgrade pip setuptools wheel
25+
- name: Config Git
26+
run: |
27+
git config user.name "$(git log -n 1 --pretty=format:%an)"
28+
git config user.email "$(git log -n 1 --pretty=format:%ae)"
29+
- name: Build v1
30+
run: |
31+
git fetch origin deploy:deploy
32+
mike deploy --push --branch deploy --rebase v1
33+
- name: Build v2
34+
run: |
35+
git fetch origin deploy:deploy
36+
mike deploy --push --branch deploy --rebase v2

0 commit comments

Comments
 (0)