Skip to content

Commit 153d3a7

Browse files
committed
use ANACONDA_TOKEN secret
Signed-off-by: Mitchell <[email protected]>
1 parent 99b7424 commit 153d3a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/python_wheels.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ on:
3434
required: true
3535
DOCKERHUB_READONLY_TOKEN:
3636
required: true
37+
ANACONDA_TOKEN:
38+
required: true
3739

3840
name: Python wheels
3941

@@ -284,6 +286,13 @@ jobs:
284286
~/miniconda3/bin/conda init bash
285287
source ~/.bashrc
286288
289+
# we have to accept the channels in order to install the package to sign in
290+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
291+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
292+
293+
conda install --name base anaconda-auth --yes
294+
anaconda auth ${{ secrets.ANACONDA_TOKEN }}
295+
287296
# Extract the setup script from Python wheel's readme
288297
cudaq_wheel=/tmp/cuda_quantum_cu*-manylinux_*_$(uname -m).whl
289298
wheelname=${cudaq_wheel##*/} && archive_name=${wheelname%.*}.zip

0 commit comments

Comments
 (0)