File tree 2 files changed +37
-7
lines changed
2 files changed +37
-7
lines changed Original file line number Diff line number Diff line change
1
+ # This workflows will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+ name : Upload Python Package
5
+
6
+ on :
7
+ release :
8
+ types : [created]
9
+
10
+ jobs :
11
+ deploy :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v1
18
+ with :
19
+ python-version : " 3.x"
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel twine
24
+ - name : Build and publish
25
+ env :
26
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
27
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
28
+ run : |
29
+ python setup.py bdist_wheel
30
+ twine upload dist/*
Original file line number Diff line number Diff line change 1
1
dist : xenial
2
+
2
3
language : python
4
+
3
5
python :
4
6
- 3.6
5
7
- 3.7
6
8
- 3.8
7
9
- 3.8-dev
10
+
8
11
cache : apt
12
+
9
13
addons :
10
14
chrome : stable
15
+
11
16
before_install :
12
17
- sudo apt update
13
18
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
@@ -20,16 +25,11 @@ before_install:
20
25
- rm ~/chromedriver_linux64.zip
21
26
- sudo mv -f ~/chromedriver /usr/bin/
22
27
- sudo chmod +x /usr/bin/chromedriver
28
+
23
29
install :
24
30
- pip install -r requirements.txt
25
31
- python setup.py build
26
32
- pip install .[all]
33
+
27
34
script :
28
35
- bash scripts/test.sh
29
- deploy :
30
- provider : pypi
31
- on :
32
- tags : true
33
- user : __token__
34
- password :
35
- secure : dpqXuLuCHKGDiu8NOv3YjKGRXj1s0HLT4+9X6vslqXBhMpB3a4IqkWmxwEq5u9Ch4Hg4pFP08zCOYDIu3bCC/7HCU8dYe8Klv1ReO63+nTF2ffQr3x/FefmzSMZfwCE2NPjEix2jypqYuGQ+1/HXGacMp9Uoa1XYhaZwo+6ggkUPVqF9Lgaae2WSJmvM9D4GeOz6p0oehDZgH8jQi8byiHeeik0CTkzwvBxL6ylMowanYiG2/St5R+iMrZNMLYvm6zS9oxJhorXUM91SuxzILy/7BWMo4iMEIuzMk5I2m9qTM311lF7Cgs5lVtxz6vH/vIPp70uuvpT1tV/TgKU78pu+ucnkH4Yy7DqXXJTl4fB23RoU8damwtZBQrIcD2kAbnrhby3myXOIh7t/z2d9LPW3+VoUd9d2Lk1dYHUmuz6fbVKEmJSaS1WTbf0AMroS56uicx4TI0M1fcg84kvFO0UZQ3l2Wy15sLAzn04FuV/P/q3L00TMsFSPwNXg3ckqJWEWe9nrfi57bfcjuX/GGVC+RvX+6e6hczBzJsQjZI9FCIhKdbmwvIxvijeq6dQzJyT8ABjL0YImZcbb0WjfHWqTYV0k2aXXeg2Lnu1OCX4EOt2FYlZCn6KcWEpRO7ZglKxFGfnBMEFcaCIC1fLvTTm5+JLw6COPgFJCm7HWUGo=
You can’t perform that action at this time.
0 commit comments