upgrade to py310 (#60) #36
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 and Deploy | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
jobs: | |
build-and-publish-python-module: | |
name: Build and publish python module to pypi | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup python 3.10 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.10.14 | |
- name: Add wheel dependency | |
run: pip install wheel | |
- name: Generate dist | |
run: python setup.py sdist bdist_wheel | |
- name: Publish to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |