Add DCB data only if available to avoid crash (#86) #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Wheel | |
# run on new version tag | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
job: | |
name: Build wheel | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install python dependencies | |
run: pip install wheel twine | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build wheel | |
run: | | |
python setup.py sdist bdist_wheel | |
ls dist | |
twine check dist/* | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |