Update main.yml

This commit is contained in:
Mario Sarcher authored and GitHub committed 2020-10-30 09:59:55 +01:00
1 parent 7b6be03eb0
commit a8ae2d099f
1 file changed
+12 -2
+12 -2
View File
@@ -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