File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 5
5
- name : " lint"
6
6
- name : " test"
7
7
- name : " integration"
8
- # - name: "deploy"
9
- # if: "branch = master"
8
+ - name : " deploy-github"
9
+ if : " tag IS present"
10
+ - name : " deploy-pypi"
11
+ if : " tag IS present"
10
12
11
13
language : " python"
12
14
python :
96
98
- " invoke integration-tests"
97
99
env : " NETBOX_VERSION=v2.8"
98
100
python : 3.7
101
+
102
+ - stage : " deploy-github"
103
+ before_script :
104
+ - " pip install poetry"
105
+ script :
106
+ - " poetry version $TRAVIS_TAG"
107
+ - " poetry build"
108
+ deploy :
109
+ provider : " releases"
110
+ api_key : " $GITHUB_AUTH_TOKEN"
111
+ file_glob : true
112
+ file : " dist/*"
113
+ skip_cleanup : true
114
+ " on " :
115
+ all_branches : true
116
+
117
+ - stage : " deploy-pypi"
118
+ before_script :
119
+ - " pip install poetry"
120
+ script :
121
+ - " poetry version $TRAVIS_TAG"
122
+ - " poetry config pypi-token.pypi $PYPI_TOKEN"
123
+ - " poetry publish --build"
You can’t perform that action at this time.
0 commit comments