Skip to content

Commit 4b0ad8a

Browse files
author
Thierry RAMORASOAVINA
committed
Stop publishing the conda package to a specific channel on Anaconda
The publishing to channel khiops-dev is kept only for testing purpose
1 parent 083658f commit 4b0ad8a

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/conda.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ on:
1515
default: 11.0.0
1616
description: khiops-samples version
1717
release-channel:
18+
# show the release-channel name for information (read-only)
1819
type: choice
1920
default: khiops-dev
20-
options: [khiops-dev, khiops]
21+
options: [khiops-dev]
2122
description: Anaconda channel to release
2223
push:
2324
tags: ['*']
@@ -223,8 +224,8 @@ jobs:
223224
tests.test_khiops_integrations.KhiopsRunnerEnvironmentTests.test_runner_environment_initialization
224225
225226
# 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
228229
release:
229230
if: github.ref_type == 'tag'
230231
needs: test
@@ -269,15 +270,7 @@ jobs:
269270
- name: Upload the Package to anaconda.org
270271
run: |-
271272
# 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

Comments
 (0)