@@ -3,9 +3,8 @@ name: Build and Release
3
3
on :
4
4
push :
5
5
branches :
6
- - conda
7
- # - master
8
- # - maintenance/*
6
+ - master
7
+ - maintenance/*
9
8
create :
10
9
tags :
11
10
- ' v[0-9]+.[0-9]+.[0-9]+*'
@@ -201,12 +200,12 @@ jobs:
201
200
name : conda_packages
202
201
path : ./conda_packages
203
202
204
- # - name: Publish on TestPyPI
205
- # uses: pypa/gh-action-pypi-publish@master
206
- # with:
207
- # user: __token__
208
- # password: ${{ secrets.testpypi }}
209
- # repository_url: https://test.pypi.org/legacy/
203
+ - name : Publish on TestPyPI
204
+ uses : pypa/gh-action-pypi-publish@master
205
+ with :
206
+ user : __token__
207
+ password : ${{ secrets.testpypi }}
208
+ repository_url : https://test.pypi.org/legacy/
210
209
211
210
- name : Get Version Number
212
211
if : github.event.ref_type == 'tag'
@@ -252,17 +251,17 @@ jobs:
252
251
conda activate
253
252
conda install anaconda-client
254
253
255
- # - name: Publish to Anaconda test label
256
- # if: github.event.ref_type != 'tag'
257
- # run: |
258
- # source .miniconda/etc/profile.d/conda.sh
259
- # conda activate
260
- # anaconda \
261
- # --token ${{ secrets.ANACONDA_API_TOKEN }} \
262
- # upload \
263
- # --user $ANACONDA_USER \
264
- # --label test \
265
- # conda_packages/*/*
254
+ - name : Publish to Anaconda test label
255
+ if : github.event.ref_type != 'tag'
256
+ run : |
257
+ source .miniconda/etc/profile.d/conda.sh
258
+ conda activate
259
+ anaconda \
260
+ --token ${{ secrets.ANACONDA_API_TOKEN }} \
261
+ upload \
262
+ --user $ANACONDA_USER \
263
+ --label test \
264
+ conda_packages/*/*
266
265
267
266
- name : Publish to Anaconda main label
268
267
if : github.event.ref_type == 'tag'
0 commit comments