File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ pull_request :
5+ branches-ignore :
6+ - ' master'
7+ push :
8+ tags :
9+ - ' [0-9]+.[0-9]+.[0-9]+'
10+ - ' [0-9]+.[0-9]+.[0-9]+rc[0-9]+'
11+
12+ jobs :
13+ release-to-pypi :
14+ runs-on : ubuntu-16.04
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up Python
18+ uses : actions/setup-python@v1
19+ with :
20+ python-version : ' 3.5'
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install setuptools wheel twine
25+ - name : Build and publish
26+ env :
27+ TWINE_USERNAME : chaostoolkit
28+ TWINE_PASSWORD : ${{ secrets.PYPI_PWD }}
29+ run : |
30+ python3 setup.py release
31+ twine upload dist/*
32+ # push artifacts for other jobs to use
33+ - name : Upload packages as artifacts
34+ uses : actions/upload-artifact@v2-preview
35+ with :
36+ name : chaostoolkit-packages
37+ path : dist/chaostoolkit-lib-*
You can’t perform that action at this time.
0 commit comments