mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update main.yml
This commit is contained in:
parent
7b6be03eb0
commit
a8ae2d099f
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@ -32,15 +32,25 @@ jobs:
|
|||||||
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git
|
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git
|
||||||
pip install mkdocs-git-revision-date-localized-plugin mike
|
pip install mkdocs-git-revision-date-localized-plugin mike
|
||||||
|
|
||||||
- name: mkdocs deploy
|
- name: git config
|
||||||
run: |
|
run: |
|
||||||
cd lens/
|
cd lens/
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
mike deploy --push --force --update-aliases 4.0.0 latest
|
|
||||||
|
- name: mkdocs deploy latest
|
||||||
|
if: (!contains(github.ref, "refs/tags/"))
|
||||||
|
run: |
|
||||||
|
mike deploy --push --force --update-aliases latest
|
||||||
|
|
||||||
|
- name: mkdocs deploy new tag
|
||||||
|
if: (!contains(github.ref, "refs/tags/v"))
|
||||||
|
run: |
|
||||||
|
mike deploy --push --force --update-aliases ${{ github.ref }} latest
|
||||||
mike set-default --force --push latest
|
mike set-default --force --push latest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Commit files
|
# - name: Commit files
|
||||||
# run: |
|
# run: |
|
||||||
# cd lensdocs/
|
# cd lensdocs/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user