Skip to content

Commit 4442660

Browse files
committed
Added Pypi automation
1 parent 369a1c6 commit 4442660

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/SDK/Language/Python.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ public function getFiles()
170170
'template' => '/python/docs/example.md.twig',
171171
'minify' => false,
172172
],
173+
[
174+
'scope' => 'default',
175+
'destination' => '.travis.yml',
176+
'template' => '/python/.travis.yml.twig',
177+
'minify' => false,
178+
],
173179
];
174180
}
175181

templates/python/.travis.yml.twig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
3+
python:
4+
- "3.8"
5+
6+
jobs:
7+
include:
8+
- stage: pypi release
9+
python: "3.8"
10+
script: echo "Deploying to pypi ..."
11+
deploy:
12+
provider: pypi
13+
username: "__token__"
14+
password: $PYPI_TOKEN
15+
on:
16+
tags: true

0 commit comments

Comments
 (0)