From 93852bf7dba543b54d5476b48f49a0638bee001d Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Fri, 21 Jun 2024 13:36:35 +0200 Subject: [PATCH] ci: Match version tag and deploy minor version --- .github/workflows/argilla.docs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/argilla.docs.yml b/.github/workflows/argilla.docs.yml index 6e86c879a1..c41b37b276 100644 --- a/.github/workflows/argilla.docs.yml +++ b/.github/workflows/argilla.docs.yml @@ -9,7 +9,7 @@ on: push: tags: - - "v[0-9]+.[0-9]+" + - "v[2-9]+.[0-9]+.[0-9]+" branches: - "main" - "develop" @@ -62,5 +62,11 @@ jobs: - run: pdm run mike deploy dev --push if: github.ref == 'refs/heads/develop' - - run: pdm run mike deploy ${{ github.ref_name }} + - name: pdm run mike deploy $version + run: | + version=$(echo $TAG_VERSION | awk -F \. {'print $1"."$2'}) + echo "Deploying version ${version}" + pdm run mike deploy $version if: startsWith(github.ref, 'refs/tags/') + env: + TAG_VERSION: ${{ github.ref_name }}