Skip to content

Commit 988983b

Browse files
fix: improved ci workflow
1 parent 3ce122d commit 988983b

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/release-please.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,14 @@ jobs:
6161
release_created: ${{ steps.release.outputs.release_created }}
6262
# if a release is created then run the deploy scripts for github.io, conda, pypi and docker
6363

64-
conda-deploy:
65-
name: Building conda package for python ${{ matrix.python-version }}-${{ matrix.os }})
64+
conda-build:
65+
name: Building conda package for python
6666
needs: "continuous-integration"
67-
runs-on: ${{matrix.os}}
68-
strategy:
69-
fail-fast: false
70-
matrix:
71-
os: ["ubuntu-latest"]
72-
python-version: ["3.10", "3.11", "3.12", "3.13"]
67+
runs-on: ubuntu-latest
7368
steps:
7469
- uses: conda-incubator/setup-miniconda@v3
7570
with:
7671
auto-update-conda: true
77-
python-version: ${{ matrix.python-version }}
7872

7973
- uses: actions/checkout@v4
8074
- name: update submodules
@@ -93,7 +87,7 @@ jobs:
9387
- name: upload artifacts
9488
uses: actions/upload-artifact@v4
9589
with:
96-
name: conda-build-${{ matrix.python-version }}-${{ matrix.os }}
90+
name: conda-build
9791
path: conda
9892
make_sdist:
9993
needs: "continuous-integration"
@@ -113,18 +107,13 @@ jobs:
113107
path: dist/
114108

115109
upload_to_conda:
116-
needs: ["release-please", "conda-deploy"]
117-
runs-on: ${{matrix.os}}
118-
strategy:
119-
fail-fast: false
120-
matrix:
121-
os: ["ubuntu-latest"]
122-
python-version: ["3.10", "3.11", "3.12", "3.13"]
110+
needs: ["release-please", "conda-build"]
111+
runs-on: ubuntu-latest
123112
if: ${{ needs.release-please.outputs.release_created }}
124113
steps:
125114
- uses: actions/download-artifact@v4
126115
with:
127-
name: conda-${{ matrix.os }}-${{ matrix.python-version }}
116+
name: conda
128117
path: conda
129118
- uses: conda-incubator/setup-miniconda@v3
130119
- name: upload all files to conda-forge
@@ -136,7 +125,7 @@ jobs:
136125
anaconda upload --label main conda/*/*.conda
137126
138127
upload_to_pypi:
139-
needs: ["release-please", "conda-deploy"]
128+
needs: ["release-please", "conda-build"]
140129
runs-on: "ubuntu-latest"
141130

142131
if: ${{ needs.release-please.outputs.release_created }}

0 commit comments

Comments
 (0)