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,13 +32,23 @@ jobs:
|
||||
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git
|
||||
pip install mkdocs-git-revision-date-localized-plugin mike
|
||||
|
||||
- name: mkdocs deploy
|
||||
- name: git config
|
||||
run: |
|
||||
cd lens/
|
||||
git config --local user.email "action@github.com"
|
||||
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
|
||||
|
||||
|
||||
|
||||
# - name: Commit files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user