Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit 2368f1b

Browse files
committed
Add wheel upload
1 parent fc0e2ee commit 2368f1b

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/conda-package.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,29 @@ jobs:
3939
- name: Install conda-build
4040
run: conda install conda-build
4141

42-
- name: Build conda package
43-
env:
44-
CHANNELS: -c intel -c conda-forge --override-channels
45-
run: conda build --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe
46-
4742
- name: Store conda paths as envs
4843
shell: bash -l {0}
4944
run: |
5045
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\" '/' >> $GITHUB_ENV
46+
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
47+
48+
- name: Build conda package
49+
env:
50+
CHANNELS: -c intel -c conda-forge --override-channels
51+
run: conda build --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe
5152

5253
- name: Upload artifact
5354
uses: actions/upload-artifact@v4
5455
with:
5556
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
5657
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
5758

59+
- name: Upload wheels artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
63+
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.MODULE_NAME }}-*.whl
64+
5865
upload:
5966
needs: build
6067
if: ${{github.ref == 'refs/heads/main' || (startsWith(github.ref, 'refs/heads/release') == true)}}
@@ -80,5 +87,11 @@ jobs:
8087
- name: Install anaconda-client
8188
run: conda install anaconda-client
8289

90+
- name: Package version
91+
run: echo "PACKAGE_VERSION=$(basename ${{ env.PACKAGE_NAME }}-*.tar.bz2 | sed 's/^${{ env.PACKAGE_NAME }}-\([^-]*\).*/\1/')" >> $GITHUB_ENV
92+
8393
- name: Upload
8494
run: anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2
95+
96+
- name: Upload Wheels
97+
run: anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.MODULE_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}

0 commit comments

Comments
 (0)