ci: simplify python dependency step for release/doc pipeline (#596)

Slightly simplifies the whole Python dependency step for pipelines generating mkdocs.
This commit is contained in:
Clement Tsang 2021-10-10 18:16:21 -04:00 committed by GitHub
parent a362b6c9dd
commit 65d3dd7af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 22 deletions

View File

@ -5,13 +5,13 @@ on:
branches:
- master
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
- "docs/**"
- ".github/workflows/docs.yml"
env:
# Assign commit authorship to official Github Actions bot when pushing to the `gh-pages` branch:
GIT_USER: 'github-actions[bot]'
GIT_EMAIL: '41898282+github-actions[bot]@users.noreply.github.com'
GIT_USER: "github-actions[bot]"
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
jobs:
build-documentation:
@ -26,11 +26,8 @@ jobs:
with:
python-version: 3.x
- run: pip install mkdocs-material==7.2.6
- run: pip install mdx_truly_sane_lists==1.2
- run: pip install mike==1.1.0
- name: Install Python dependencies
run: pip install docs/requirements.txt
- name: Configure git user and email
run: |

View File

@ -27,15 +27,9 @@ jobs:
run: |
echo $RELEASE_VERSION
- name: Make sure you're not on master...
- name: Make sure you're not on master/main/nightly...
run: |
if [[ $RELEASE_VERSION == "master" ]]; then
exit 1
fi
- name: Make sure you're not on nightly...
run: |
if [[ $RELEASE_VERSION == "nightly" ]]; then
if [[ $RELEASE_VERSION == "master" || $RELEASE_VERSION == "main" || $RELEASE_VERSION == "nightly" ]]; then
exit 1
fi
@ -43,11 +37,8 @@ jobs:
with:
python-version: 3.x
- run: pip install mkdocs-material==7.2.6
- run: pip install mdx_truly_sane_lists==1.2
- run: pip install mike==1.1.0
- name: Install Python dependencies
run: pip install docs/requirements.txt
- name: Configure git user and email
run: |

3
docs/requirements.txt Normal file
View File

@ -0,0 +1,3 @@
mkdocs-material == 7.3.2
mdx_truly_sane_lists == 1.2
mike == 1.1.2