|
15 | 15 | default: 11.0.0 |
16 | 16 | description: khiops-samples version |
17 | 17 | release-channel: |
| 18 | + # show the release-channel name for information (read-only) |
18 | 19 | type: choice |
19 | 20 | default: khiops-dev |
20 | | - options: [khiops-dev, khiops] |
| 21 | + options: [khiops-dev] |
21 | 22 | description: Anaconda channel to release |
22 | 23 | push: |
23 | 24 | tags: ['*'] |
@@ -223,8 +224,8 @@ jobs: |
223 | 224 | tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization |
224 | 225 |
|
225 | 226 | # 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 |
| 227 | + # Note: For this job to work the secret variable KHIOPS_ANACONDA_CHANNEL_TOKEN |
| 228 | + # must be set with a valid anaconda.org access token |
228 | 229 | release: |
229 | 230 | if: github.ref_type == 'tag' |
230 | 231 | needs: test |
@@ -269,15 +270,7 @@ jobs: |
269 | 270 | - name: Upload the Package to anaconda.org |
270 | 271 | run: |- |
271 | 272 | # 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 |
| 273 | + ANACONDA_CHANNEL="${{ inputs.release-channel }}" |
| 274 | + # For a dev channel: always upload with forcing |
| 275 | + anaconda --token "${{ secrets.KHIOPS_DEV_ANACONDA_CHANNEL_TOKEN }}" upload \ |
| 276 | + --user "$ANACONDA_CHANNEL" --force ./khiops-conda/noarch/*.conda |
0 commit comments