0.5.3 #2
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: Package | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Check release tag vs colcon_lcov_result.__version__ | |
run: | | |
python3 -c "import colcon_lcov_result; assert colcon_lcov_result.__version__ == '${GITHUB_REF/refs\/tags\//}', 'git tag and colcon_lcov_result version do not match'" | |
- name: Generate package | |
run: | | |
python3 -m pip install --user --upgrade setuptools wheel | |
python3 setup.py sdist bdist_wheel | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |