File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,21 @@ jobs:
57
57
TRAVIS_PULL_REQUEST_SLUG: $TRAVIS_PULL_REQUEST_SLUG
58
58
EOF
59
59
60
- - stage : Deploy new release on GitHub
61
- if : type = push AND tag IS present
60
+ - stage : Deploy new pre- release on PyPI
61
+ if : type = push
62
62
before_install : skip
63
63
install : skip
64
- script : skip
64
+ script :
65
+ - read -r CURRENT_VERSION <VERSION
66
+ - printf -- '%s-%s\n' "${CURRENT_VERSION}" "${TRAVIS_BUILD_NUMBER}" >VERSION
65
67
deploy :
66
- - provider : releases
67
- token : " $GITHUB_RELEASE_TOKEN"
68
+ - provider : pypi
69
+ distributions : sdist bdist_wheel
70
+ server : " https://test.pypi.org/legacy/"
71
+ username : " __token__"
72
+ password : " $PYPI_PRE_RELEASE_TOKEN"
68
73
on :
69
74
repo : IdentityPython/pysaml2
70
- tags : true
71
75
72
76
- stage : Deploy new release on PyPI
73
77
if : type = push AND tag IS present
82
86
on :
83
87
repo : IdentityPython/pysaml2
84
88
tags : true
89
+
90
+ - stage : Deploy new release on GitHub
91
+ if : type = push AND tag IS present
92
+ before_install : skip
93
+ install : skip
94
+ script : skip
95
+ deploy :
96
+ - provider : releases
97
+ token : " $GITHUB_RELEASE_TOKEN"
98
+ on :
99
+ repo : IdentityPython/pysaml2
100
+ tags : true
You can’t perform that action at this time.
0 commit comments