@@ -21,16 +21,16 @@ def upload(self):
21
21
return os .getenv ("CONAN_UPLOAD" , bintray_url )
22
22
23
23
@property
24
- def upload_only_when_stable (self ):
25
- """ Force to upload when running over tag branch
24
+ def channel (self ):
25
+ """ Default conan channel
26
26
"""
27
- return os .getenv ("CONAN_UPLOAD_ONLY_WHEN_STABLE " , True )
27
+ return os .getenv ("CONAN_CHANNEL " , "stable" )
28
28
29
29
@property
30
- def stable_branch_pattern (self ):
31
- """ Only upload the package the branch name is like a tag
30
+ def upload_only_when_tag (self ):
31
+ """ Only upload the package the branch is a tag
32
32
"""
33
- return os .getenv ("CONAN_STABLE_BRANCH_PATTERN " , r"\d+\.\d+\.\d+" )
33
+ return os .getenv ("CONAN_UPLOAD_ONLY_WHEN_TAG " , True )
34
34
35
35
@property
36
36
def reference (self ):
@@ -45,16 +45,16 @@ def reference(self):
45
45
version = result .group (1 )
46
46
if not version :
47
47
raise Exception ("Could not find version in CMakeLists.txt" )
48
- return os .getenv ("CONAN_REFERENCE" , "sequences/{}@taocpp/stable " .format (version ))
48
+ return os .getenv ("CONAN_REFERENCE" , "sequences/{}@{}/{} " .format (version , self . username , self . channel ))
49
49
50
50
if __name__ == "__main__" :
51
51
settings = BuilderSettings ()
52
52
builder = ConanMultiPackager (
53
53
reference = settings .reference ,
54
54
username = settings .username ,
55
55
upload = settings .upload ,
56
- upload_only_when_stable = settings .upload_only_when_stable ,
57
- stable_branch_pattern = settings .stable_branch_pattern ,
56
+ channel = settings .channel ,
57
+ upload_only_when_tag = settings .upload_only_when_tag ,
58
58
test_folder = os .path .join (".conan" , "test_package" ))
59
59
builder .add ()
60
60
builder .run ()
0 commit comments