9393 activate-environment : constructor-dev
9494 environment-file : dev/environment.yml
9595 python-version : ${{ matrix.python-version }}
96+ miniconda-version : latest
9697 - name : Install AzureSignTool
9798 if : startswith(matrix.os, 'windows')
9899 run : dotnet.exe tool install --global AzureSignTool
@@ -196,18 +197,13 @@ jobs:
196197 build :
197198 name : Canary Build
198199 needs : [tests]
199- # only build canary build if
200- # only build canary build if
200+ # only upload canary build if
201201 # - prior steps succeeded,
202202 # - this is the main repo, and
203203 # - we are on the main (or feature) branch
204204 if : >-
205205 success()
206206 && !github.event.repository.fork
207- && (
208- github.ref_name == 'main'
209- || startsWith(github.ref_name, 'feature/')
210- )
211207 strategy :
212208 matrix :
213209 include :
@@ -228,8 +224,16 @@ jobs:
228224 ref : ${{ github.ref }}
229225 clean : true
230226 fetch-depth : 0
227+
228+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
229+ - name : Build Python sdist and wheel
230+ run : |
231+ python -m pip install build
232+ python -m build --sdist --wheel . --outdir dist
233+
231234 - name : Create and upload canary build
232235 uses : conda/actions/canary-release@eb545bb8ab48d499b31c057a6df3cf46753fdbcb # v25.3.1
236+ if : github.ref_name == 'main' || startsWith(github.ref_name, 'feature/')
233237 with :
234238 package-name : ${{ github.event.repository.name }}
235239 subdir : ${{ matrix.subdir }}
0 commit comments