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

Commit fc0e2ee

Browse files
committed
Fix anaconda upload
1 parent 4a5c7a1 commit fc0e2ee

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/conda-package.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,16 @@ jobs:
4444
CHANNELS: -c intel -c conda-forge --override-channels
4545
run: conda build --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe
4646

47+
- name: Store conda paths as envs
48+
shell: bash -l {0}
49+
run: |
50+
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\" '/' >> $GITHUB_ENV
51+
4752
- name: Upload artifact
48-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
4954
with:
5055
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
51-
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
56+
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
5257

5358
upload:
5459
needs: build
@@ -63,14 +68,15 @@ jobs:
6368
shell: ${{ matrix.os == 'windows-latest' && 'cmd /C CALL {0}' || 'bash -l {0}' }}
6469
steps:
6570
- name: Download artifact
66-
uses: actions/download-artifact@v3
71+
uses: actions/download-artifact@v4
6772
with:
6873
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
6974

70-
- uses: conda-incubator/setup-miniconda@v2
75+
- uses: conda-incubator/setup-miniconda@v3
7176
with:
7277
auto-activate-base: true
7378
activate-environment: ""
79+
7480
- name: Install anaconda-client
7581
run: conda install anaconda-client
7682

0 commit comments

Comments
 (0)