|
14 | 14 | khiops-samples-version: |
15 | 15 | default: 11.0.0 |
16 | 16 | 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 |
22 | 17 | push: |
23 | 18 | tags: ['*'] |
24 | 19 | pull_request: |
@@ -223,8 +218,8 @@ jobs: |
223 | 218 | tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization |
224 | 219 |
|
225 | 220 | # Release is only executed on tags |
226 | | - # Note: For this job to work the secrets variables KHIOPS_ANACONDA_CHANNEL_TOKEN and |
227 | | - # KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN must be set with valid anaconda.org access tokens |
| 221 | + # Note: For this job to work the secret variable KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN |
| 222 | + # must be set with a valid anaconda.org access token |
228 | 223 | release: |
229 | 224 | if: github.ref_type == 'tag' |
230 | 225 | needs: test |
@@ -268,16 +263,6 @@ jobs: |
268 | 263 | run: python -m conda_index ./khiops-conda |
269 | 264 | - name: Upload the Package to anaconda.org |
270 | 265 | run: |- |
271 | | - # Set the anaconda.org channel |
272 | | - ANACONDA_CHANNEL="${{ inputs.release-channel || 'khiops-dev' }}" |
273 | | -
|
274 | | - # For the release channel: upload without forcing |
275 | | - if [[ "$ANACONDA_CHANNEL" == "khiops" ]] |
276 | | - then |
277 | | - anaconda --token "${{ secrets.KHIOPS_ANACONDA_CHANNEL_TOKEN }}" upload \ |
278 | | - --user "$ANACONDA_CHANNEL" ./khiops-conda/noarch/*.conda |
279 | | - # For the dev channel: upload with forcing |
280 | | - else |
281 | | - anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \ |
282 | | - --user "$ANACONDA_CHANNEL" --force ./khiops-conda/noarch/*.conda |
283 | | - fi |
| 266 | + # Override versions, as the packages are pushed to a dev channel |
| 267 | + anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \ |
| 268 | + --user khiops-dev --force ./khiops-conda/noarch/*.conda |
0 commit comments