Skip to content

update versions

update versions #15

name: Build and publish Python distribution to PyPI
on:
push:
tags:
- '*'
workflow_dispatch: {}
jobs:
build-and-publish-to-pypi:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}