mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
ci: fetching the gh-pages
branch added to the documentation GitHub Action
This commit is contained in:
3
.github/workflows/documentation.yml
vendored
3
.github/workflows/documentation.yml
vendored
@@ -47,10 +47,11 @@ jobs:
|
|||||||
- name: Installing pip packages
|
- name: Installing pip packages
|
||||||
run: |
|
run: |
|
||||||
pip install conan mkdocs-material mike
|
pip install conan mkdocs-material mike
|
||||||
- name: Setup git configuration
|
- name: Prepare git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name github-actions
|
git config --global user.name github-actions
|
||||||
git config --global user.email github-actions@github.com
|
git config --global user.email github-actions@github.com
|
||||||
|
git fetch origin gh-pages --depth=1
|
||||||
- name: Building docs
|
- name: Building docs
|
||||||
run: |
|
run: |
|
||||||
mike deploy --push --update-aliases `conan inspect . | sed -n -r 's/version: ([0-9]+.[0-9]+).[0-9]+/\1/p'` latest
|
mike deploy --push --update-aliases `conan inspect . | sed -n -r 's/version: ([0-9]+.[0-9]+).[0-9]+/\1/p'` latest
|
||||||
|
Reference in New Issue
Block a user