File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 40
40
- name : Install Build Tools
41
41
run : conda install python anaconda-client conda-build
42
42
43
- - name : Configure Auto-Upload
44
- if : github.ref == 'refs/heads/stable'
45
- run : |
46
- conda config --set anaconda_upload yes
47
-
48
43
- name : Build Binary
49
44
run : |
50
45
# set a default value to the conda_token if needed (like from forks)
53
48
echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV
54
49
conda config --add channels rmg
55
50
conda config --add channels conda-forge
56
- CONDA_NPY=${{ matrix.numpy-version }} CONDA_PY=${{ matrix.python-version }} conda build --token $CONDA_TOKEN --user rmg .
51
+ conda config --set anaconda_upload no
52
+ CONDA_NPY=${{ matrix.numpy-version }} CONDA_PY=${{ matrix.python-version }} conda build .
53
+
54
+ - name : Upload Built Binaries
55
+ if : >
56
+ (github.event_name == 'push' && github.ref == 'refs/heads/stable') ||
57
+ (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/stable')
58
+ run : |
59
+ anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload $(conda build --output)
57
60
58
61
result :
59
62
if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments