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 }}