From 73a7410e2ccabee5dab86c910abcff13659007a8 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Mon, 6 Nov 2023 22:19:16 -0500 Subject: [PATCH] add tags --- .github/workflows/mkdocs.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index e3ef61b..98c4589 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -8,7 +8,7 @@ on: permissions: contents: write -jobs: +jjobs: deploy: runs-on: ubuntu-latest @@ -33,7 +33,6 @@ jobs: restore-keys: | mkdocs-material- - - name: Install Requirements run: | sudo apt-get update && @@ -43,5 +42,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - - name: Build and deploy MkDocs - run: mkdocs gh-deploy --force + - name: Get current tag + id: get-tag + run: echo "::set-output name=version::$(git describe --tags --abbrev=0)" + + - name: Build and deploy with mike + run: mike deploy --update-aliases ${{ steps.get-tag.outputs.version }} latest + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}