blob: 693fd17e270717344a39cd880025d5359439c6d8 [file] [log] [blame]
on:
release:
types: [released]
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pywebsocket3
permissions:
id-token: write
steps:
# Setup python envs
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
# Install required dependencies
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install six yapf
# Build and create dist
- name: Build Package
run: python3 setup.py sdist
# Distribute to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1