Skip to content

Commit af2d5bf

Browse files
committed
ci: update ci actions
1 parent 9de0ab9 commit af2d5bf

File tree

2 files changed

+32
-40
lines changed

2 files changed

+32
-40
lines changed

.github/workflows/build-and-deploy.yml

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

.github/workflows/mike-deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Mkdocs Build
2+
3+
on:
4+
push:
5+
branches: [ "v1", "v2" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
mike-deploy:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
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 package
30+
run: |
31+
git fetch origin deploy:deploy
32+
mike deploy --push --branch deploy --rebase ${{ github.ref_name }}

0 commit comments

Comments
 (0)