7070 echo "✓ Python $version is installed"
7171 done
7272 echo "All Python versions verified successfully!"
73+ - name : Update version for release
74+ if : startsWith(github.ref, 'refs/tags/v')
75+ run : |
76+ export PATH="$HOME/.pyenv/bin:$PATH"
77+ eval "$(pyenv init -)"
78+ pyenv shell 3.9
79+
80+ # Install bump-my-version
81+ python -m pip install bump-my-version
82+ TAG_NAME=${GITHUB_REF#refs/tags/v}
83+ bump-my-version replace $TAG_NAME
84+ echo "Version files updated to $TAG_NAME"
85+ pyenv shell --unset
7386 - name : Install dependencies for all Python versions
7487 run : |
7588 export PATH="$HOME/.pyenv/bin:$PATH"
@@ -133,6 +146,7 @@ jobs:
133146 - uses : actions/checkout@v3
134147 with :
135148 fetch-depth : 0
149+ token : ${{ secrets.GH_TOKEN }}
136150 - name : Update submodules
137151 run : |
138152 git submodule update --init --recursive --jobs 4
@@ -276,6 +290,14 @@ jobs:
276290 echo "No core files found in tmp/core"
277291 fi
278292 continue-on-error : true
293+ - name : Keep killall ccache and wait for ccache to finish
294+ if : always()
295+ run : |
296+ sleep 60
297+ while ps -ef | grep ccache | grep -v grep; do \
298+ killall ccache; \
299+ sleep 10; \
300+ done
279301 - name : Upload core files artifact
280302 if : always() && env.CORE_FILES_FOUND == 'true'
281303 uses : actions/upload-artifact@v4
@@ -330,4 +352,4 @@ jobs:
330352 python -m twine upload dist/*.whl
331353 env :
332354 TWINE_USERNAME : __token__
333- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
355+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
0 commit comments