From a8ae2d099f8c0428063c69780b94a2e222ba8a22 Mon Sep 17 00:00:00 2001 From: Mario Sarcher Date: Fri, 30 Oct 2020 09:59:55 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e365c923d..35920185b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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