Skip to content

Commit 1312128

Browse files
committed
Initial build pipeline
1 parent 16001f6 commit 1312128

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,30 @@ jobs:
3939
run: make clean
4040
- name: Run tests
4141
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/*

0 commit comments

Comments
 (0)