mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-14 00:17:07 +00:00
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:
parent
a362b6c9dd
commit
65d3dd7af5
3 changed files with 13 additions and 22 deletions
15
.github/workflows/docs.yml
vendored
15
.github/workflows/docs.yml
vendored
|
@ -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: |
|
||||
|
|
17
.github/workflows/post-release.yml
vendored
17
.github/workflows/post-release.yml
vendored
|
@ -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
3
docs/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
mkdocs-material == 7.3.2
|
||||
mdx_truly_sane_lists == 1.2
|
||||
mike == 1.1.2
|
Loading…
Reference in a new issue