1414 khiops-samples-version :
1515 default : 10.3.2
1616 description : khiops-samples version
17- release-channel :
18- type : choice
19- default : khiops-dev
20- options : [khiops-dev, khiops]
21- description : Anaconda channel to release
2217 push :
2318 tags : ['*']
2419 pull_request :
@@ -205,8 +200,8 @@ jobs:
205200 tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
206201
207202 # Release is only executed on tags
208- # Note: For this job to work the secrets variables KHIOPS_ANACONDA_CHANNEL_TOKEN and
209- # KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN must be set with valid anaconda.org access tokens
203+ # Note: For this job to work the secret variable KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN
204+ # must be set with a valid anaconda.org access token
210205 release :
211206 if : github.ref_type == 'tag'
212207 needs : test
@@ -232,16 +227,6 @@ jobs:
232227 run : python -m conda_index ./khiops-conda
233228 - name : Upload the Package to anaconda.org
234229 run : |-
235- # Set the anaconda.org channel
236- ANACONDA_CHANNEL="${{ inputs.release-channel || 'khiops-dev' }}"
237-
238- # For the release channel: upload without forcing
239- if [[ "$ANACONDA_CHANNEL" == "khiops" ]]
240- then
241- anaconda --token "${{ secrets.KHIOPS_ANACONDA_CHANNEL_TOKEN }}" upload \
242- --user "$ANACONDA_CHANNEL" ./khiops-conda/noarch/*.conda
243- # For the dev channel: upload with forcing
244- else
245- anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
246- --user "$ANACONDA_CHANNEL" --force ./khiops-conda/noarch/*.conda
247- fi
230+ # Override versions, as the packages are pushed to a dev channel
231+ anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \
232+ --user khiops-dev --force ./khiops-conda/noarch/*.conda
0 commit comments