File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 39
39
run : make clean
40
40
- name : Run tests
41
41
run : make PYTHON3=python check
42
+
43
+ # Build the binary wheel as well as the source tar
44
+ - name : Build Objects
45
+ # if: startsWith(github.ref, 'refs/tags')
46
+ run : python setup.py sdist bdist_wheel
47
+
48
+ # Ensure the objects were packaged correctly and there wasn't an issue with
49
+ # the compilation or packaging process.
50
+ - name : Check Objects
51
+ # if: startsWith(github.ref, 'refs/tags')
52
+ run : |
53
+ pip install -q twine
54
+ twine check dist/*
55
+
56
+ # Upload the packages on all develop and main pipleines for test consumption
57
+ - name : Upload HTML Docs
58
+ # if: startsWith(github.ref, 'refs/tags')
59
+ uses : actions/upload-artifact@v2
60
+ with :
61
+ name : packages
62
+ path : ./dist/
63
+
64
+ # If this commit is the result of a Git tag, push the wheel and tar packages
65
+ # to the PyPi registry
66
+ - name : Publish to PyPI
67
+ if : startsWith(github.ref, 'refs/tags')
68
+ run : twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*
You can’t perform that action at this time.
0 commit comments