Update event.py (#112) #132
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 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 }} |