Skip to content

Release to Pypi

Release to Pypi #4

Workflow file for this run

name: Release to Pypi
on:
release:
types: [ published ]
jobs:
release:
if: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
runs-on: ubuntu-latest
container: ghcr.io/opencyphal/toxic:tx22.4.1
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: version-check
# Fails the release if the release-tag doesn't match the Nunavut version at that tag.
run: |
$(./.github/verify.py -vv --version-check-only "2.1.1")
- name: lint
run: tox -e lint
- name: test-nnvg
run: tox -e py310-nnvg
- name: test-doctest
run: tox -e py310-doctest,py310-rstdoctest
- name: test-pytest
run: tox -e py310-test
- name: package
run: tox -e package
- name: upload
run: |
pip3 install twine
twine upload -u __token__ -p ${{ secrets.PYPI_PASSWORD }} .tox/package/dist/*