Skip to content

Release to PyPi

Release to PyPi #9

Workflow file for this run

name: Release to PyPi
on:
release:
types: [published]
env:
python_version: 3.8
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python ${{ env.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_version }}
- name: Install Python build dependencies
run: |
pip install setuptools twine build
- name: Build binary
run: |
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1