Skip to content

Commit

Permalink
ci: Match version tag and deploy minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Jun 21, 2024
1 parent ea08e56 commit 93852bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/argilla.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

push:
tags:
- "v[0-9]+.[0-9]+"
- "v[2-9]+.[0-9]+.[0-9]+"
branches:
- "main"
- "develop"
Expand Down Expand Up @@ -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 }}

0 comments on commit 93852bf

Please sign in to comment.