File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -38,38 +38,22 @@ jobs:
38
38
make cov
39
39
codecov
40
40
41
- pre-deploy :
42
- name : Pre-Deploy
43
- runs-on : ubuntu-latest
44
- needs : test
45
- # Run only on pushing a tag
46
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47
- steps :
48
- - name : Dummy
49
- run : |
50
- echo "Predeploy step"
51
41
deploy :
52
42
name : Deploy
53
- needs : [pre-deploy]
43
+ needs : test
44
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
54
45
runs-on : ubuntu-latest
55
46
steps :
56
47
- name : Setup Python 3.8
57
48
uses : actions/setup-python@v2
58
49
with :
59
50
python-version : 3.8
60
- - name : Install twine
61
- run : |
62
- python -m pip install twine wheel
63
- python setup.py sdist bdist_wheel
64
- twine check dist/*
65
- - name : Download dists
66
- uses : actions/download-artifact@v2
67
- with :
68
- name : dist
69
- path : dist
70
51
- name : PyPI upload
71
52
env :
72
53
TWINE_USERNAME : __token__
73
54
TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
74
55
run : |
56
+ python -m pip install -U twine wheel
57
+ python setup.py sdist bdist_wheel
58
+ twine check dist/*
75
59
twine upload dist/*
You can’t perform that action at this time.
0 commit comments