File tree Expand file tree Collapse file tree 2 files changed +37
-7
lines changed Expand file tree Collapse file tree 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 11dist : xenial
2+
23language : python
4+
35python :
46 - 3.6
57 - 3.7
68 - 3.8
79 - 3.8-dev
10+
811cache : apt
12+
913addons :
1014 chrome : stable
15+
1116before_install :
1217 - sudo apt update
1318 - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
@@ -20,16 +25,11 @@ before_install:
2025 - rm ~/chromedriver_linux64.zip
2126 - sudo mv -f ~/chromedriver /usr/bin/
2227 - sudo chmod +x /usr/bin/chromedriver
28+
2329install :
2430 - pip install -r requirements.txt
2531 - python setup.py build
2632 - pip install .[all]
33+
2734script :
2835 - 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