From 561378b5c5b45d0a287cda49ea49579939cf37d9 Mon Sep 17 00:00:00 2001 From: youben11 Date: Thu, 26 Dec 2024 09:18:15 +0100 Subject: [PATCH] fix(ci/docs): change version only it was previously changing the file header which then affects the docs --- .github/workflows/concrete_python_release_cpu.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/concrete_python_release_cpu.yml b/.github/workflows/concrete_python_release_cpu.yml index 7e78aae90..663f3817d 100644 --- a/.github/workflows/concrete_python_release_cpu.yml +++ b/.github/workflows/concrete_python_release_cpu.yml @@ -68,7 +68,11 @@ jobs: if: ${{ env.RELEASE_TYPE == 'public' }} run: echo "__version__ = \"$(git describe --tags --abbrev=0 | grep -e '[0-9].*' -o)\"" >| frontends/concrete-python/version.txt - name: Expose release version from Python - run: cp frontends/concrete-python/version.txt frontends/concrete-python/concrete/fhe/version.py + run: | + # remove old version + sed '/^__version__/d' -i frontends/concrete-python/concrete/fhe/version.py + # add new version + cat frontends/concrete-python/version.txt >> frontends/concrete-python/concrete/fhe/version.py - name: Optional GPU Options if: ${{ matrix.hw == 'gpu' }} run: | @@ -209,7 +213,11 @@ jobs: if: ${{ env.RELEASE_TYPE == 'public' }} run: echo "__version__ = \"$(git describe --tags --abbrev=0 | grep -e '[0-9].*' -o)\"" >| frontends/concrete-python/version.txt - name: Expose release version from Python - run: cp frontends/concrete-python/version.txt frontends/concrete-python/concrete/fhe/version.py + run: | + # remove old version + sed -e '/^__version__/d' -i '' frontends/concrete-python/concrete/fhe/version.py + # add new version + cat frontends/concrete-python/version.txt >> frontends/concrete-python/concrete/fhe/version.py - name: Build wheel run: | CONCRETE_PYTHON=$(pwd)/frontends/concrete-python