From 483b457b142bd63cc0d229321a7bd85cc988e553 Mon Sep 17 00:00:00 2001 From: Georg K Date: Sat, 28 Dec 2024 02:25:50 +0300 Subject: [PATCH] fix: on tags --- .gitea/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 4f310cc..f7da138 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -3,15 +3,13 @@ run-name: ${{ gitea.actor }} is runs ci pipeline on: push: - branches: - - fixed + tags: + - 'v*.*.*' jobs: packaging: name: Distribution runs-on: ubuntu-latest - env: - EXT_FIX: "2.0.4" steps: - uses: actions/checkout@v4 - name: Set up Python 3.12 @@ -19,7 +17,7 @@ jobs: with: python-version: '3.12' - name: Update version - run: sed -i -e "s/1.12.1/${EXT_FIX}/g" aiohttp_pydantic/__init__.py + run: sed -i -e "s/1.12.1/${{ gitea.ref_name }}/g" aiohttp_pydantic/__init__.py - name: Install invoke run: python -m pip install setuptools wheel invoke - name: Push to PyPi