File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,9 @@ jobs:
213213
214214 continue-on-error : false
215215
216- if : |
217- (github.repository == 'IntelPython/dpbench') &&
218- (github.ref == 'refs/heads/main' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
216+ # if: |
217+ # (github.repository == 'IntelPython/dpbench') &&
218+ # (github.ref == 'refs/heads/main' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
219219
220220 steps :
221221 - name : Download artifact
@@ -239,12 +239,15 @@ jobs:
239239 - name : Install anaconda-client
240240 run : conda install anaconda-client
241241
242- - name : Upload
243- run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2
242+ - name : Package version
243+ run : echo "PACKAGE_VERSION=$(basename ${{ env.PACKAGE_NAME }}-*.tar.bz2 | sed 's/^${{ env.PACKAGE_NAME }}-\([^-]*\).*/\1/')" >> $GITHUB_ENV
244+
245+ - name : Upload Wheels
246+ run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}
244247 env :
245248 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
246249
247- - name : Upload Wheels
248- run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.whl
250+ - name : Upload
251+ run : anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2
249252 env :
250253 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ if EXIST "%PLATFORM_DIR%" (
4545@ REM %PYTHON% -m pip install --no-index --no-deps --no-build-isolation . -v
4646if NOT " %WHEELS_OUTPUT_FOLDER% " == " " (
4747 rem Install and assemble wheel package from the build bits
48- " %PYTHON% " setup.py install --single-version-externally-managed --record=record.txt bdist_wheel
48+ " %PYTHON% " setup.py install --single-version-externally-managed --record=record.txt bdist_wheel --build-number %GIT_DESCRIBE_NUMBER%
4949 if errorlevel 1 exit 1
5050 copy dist\dpbench*.whl %WHEELS_OUTPUT_FOLDER%
5151 if errorlevel 1 exit 1
Original file line number Diff line number Diff line change 2525
2626# Build wheel package
2727if [ -n " ${WHEELS_OUTPUT_FOLDER} " ]; then
28- $PYTHON setup.py install --single-version-externally-managed --record=record.txt bdist_wheel -p manylinux2014_x86_64
28+ $PYTHON setup.py install --single-version-externally-managed --record=record.txt bdist_wheel -p manylinux2014_x86_64 --build-number $GIT_DESCRIBE_NUMBER
2929 mkdir -p ${WHEELS_OUTPUT_FOLDER}
3030 cp dist/dpbench* .whl ${WHEELS_OUTPUT_FOLDER}
3131else
You can’t perform that action at this time.
0 commit comments