* rename workflows file and add sdist job

* rename CLI executable to IMCtermite
* add workflow badge to README.md
* clean up makefile
* add timestamp of build to CLI binary showing version/help
This commit is contained in:
2021-09-21 15:12:42 +02:00
parent b71d86f735
commit 12963bae91
5 changed files with 45 additions and 48 deletions

View File

@@ -2,11 +2,10 @@
name: Build Python Wheels
on:
push:
branches:
- master
branches: [master]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build binary wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -21,12 +20,21 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
upload_wheels:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build sdist
run: python setup.py sdist
upload_pypi:
name: Upload binary wheels to PyPI
needs: [build_wheels]
runs-on: ubuntu-20.04
needs: [build_wheels, build_sdist]
steps:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.IMCTERMITE_GITHUB_WORKFLOW_PYPI_API_TOKEN }}
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.IMCTERMITE_GITHUB_WORKFLOW_PYPI_API_TOKEN }}