Skip to content

Commit 71abab3

Browse files
committed
conda upload fix
1 parent 8a3d7be commit 71abab3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/conda_release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ jobs:
99
build-and-upload:
1010
strategy:
1111
matrix:
12-
platform: [ linux-64, linux-aarch64, osx-64, osx-arm64 ]
13-
runs-on: ${{ (matrix.platform == 'osx-64' || matrix.platform == 'osx-arm64')
14-
&& 'macos-latest'
15-
|| 'ubuntu-latest' }}
12+
platform:
13+
- subdir: linux-64
14+
runs: ubuntu-latest
15+
- subdir: linux-aarch64
16+
runs: ubuntu-24.04-arm
17+
- subdir: osx-64
18+
runs: macos-13
19+
- subdir: osx-arm64
20+
runs: macos-latest
21+
runs-on: ${{ matrix.platform.runs }}
1622
defaults:
1723
run:
1824
shell: bash -l {0}
@@ -94,5 +100,5 @@ jobs:
94100
VERSION: ${{ steps.vars.outputs.VERSION }}
95101
REPO_NAME: ${{ steps.vars.outputs.REPO_NAME }}
96102
run: |
97-
PKG=$(ls conda-build-artifacts/${{ matrix.platform }}/${{ env.REPO_NAME }}-${{ env.VERSION }}-*.tar.bz2)
103+
PKG=$(ls conda-build-artifacts/${{ matrix.platform.subdir }}/${{ env.REPO_NAME }}-${{ env.VERSION }}-*.tar.bz2)
98104
anaconda -t $ANACONDA_TOKEN upload "$PKG" --user $ANACONDA_USER --label main --force

0 commit comments

Comments
 (0)