Skip to content

Commit 78d7f30

Browse files
committed
Fix workflows
1 parent cde6e3b commit 78d7f30

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.github/workflows/mkdocs-main.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
1313

1414
- name: set dev version
1515
working-directory: ./java
1616
run: echo "DEV_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev 'Download|INFO|WARNING')" >> $GITHUB_ENV
1717

18-
- uses: actions/setup-python@v2
18+
- uses: actions/setup-python@v5
1919
with:
20-
python-version: '3.8'
20+
python-version: "3.10"
2121

2222
- name: install deps
2323
working-directory: ./python
@@ -33,4 +33,3 @@ jobs:
3333
3434
- name: mike deploy docs
3535
run: mike deploy ${{ env.DEV_VERSION }} dev -u
36-

.github/workflows/mkdocs-release.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: mkdocs-release
22

33
on:
44
push:
5-
branches: [ branch-* ]
5+
branches: [branch-*]
66

77
jobs:
88
publish-release:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515

@@ -20,16 +20,13 @@ jobs:
2020
- name: set major/minor release version
2121
run: echo "MAJOR_VERSION=$(echo $RELEASE_VERSION | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/')" >> $GITHUB_ENV
2222

23-
- uses: actions/setup-python@v2
23+
- uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.8'
25+
python-version: "3.10"
2626

2727
- name: install deps
2828
working-directory: ./python
29-
run: cp ../README.md . && pip3 install pip==22.0.3 && pip3 install -e .[dev,docs]
30-
31-
- name: use dev mike
32-
run: pip3 uninstall -y mike && pip3 install git+'https://github.com/jimporter/mike.git'
29+
run: cp ../README.md . && pip3 install -e .[dev,docs]
3330

3431
- name: generate autodoc
3532
run: python3 auto_doc.py
@@ -43,4 +40,3 @@ jobs:
4340
run: |
4441
mike deploy ${{ env.RELEASE_VERSION }} ${{ env.MAJOR_VERSION }} -u --push
4542
mike alias ${{ env.RELEASE_VERSION }} latest -u --push
46-

0 commit comments

Comments
 (0)