From b0033931ab218c4a69767e156589e750216bef87 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Wed, 29 Jun 2022 14:10:06 +0200 Subject: [PATCH] mkdocs-release link major.minor to major.minor.bugfix (#62) --- .github/workflows/mkdocs-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mkdocs-release.yml b/.github/workflows/mkdocs-release.yml index 27fe5a0b..2c643379 100644 --- a/.github/workflows/mkdocs-release.yml +++ b/.github/workflows/mkdocs-release.yml @@ -13,10 +13,13 @@ jobs: with: fetch-depth: 0 - - name: set release version + - name: set major/minor/bugfix release version working-directory: ./java run: echo "RELEASE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev 'Download|INFO|WARNING')" >> $GITHUB_ENV + - name: set major/minor release version + run: echo "MAJOR_VERSION=$(echo $RELEASE_VERSION | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/')" >> $GITHUB_ENV + - uses: actions/setup-python@v2 with: python-version: '3.8' @@ -34,5 +37,5 @@ jobs: git config --global user.email mike@docs.hopsworks.ai - name: mike deploy docs - run: mike deploy ${{ env.RELEASE_VERSION }} latest -u --push + run: mike deploy ${{ env.RELEASE_VERSION }} ${{ env.MAJOR_VERSION }} -u --push