Skip to content

Update event.py (#112) #132

Update event.py (#112)

Update event.py (#112) #132

Workflow file for this run

name: Build and publish Python distributions to PyPI
on:
- push
- workflow_dispatch
jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build wheel
run: |
python3 -m pip install wheel
python3 setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1.9
with:
password: ${{ secrets.pypi_token }}