Skip to content

feat: Add code to publish to pypi #1

feat: Add code to publish to pypi

feat: Add code to publish to pypi #1

Workflow file for this run

name: Pypi Release
on:
pull_request:
branches: [ "main" ]
release:
types:
- published
- created
- released
env:
PYTHON_VERSION: "3.10"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build artifact
run: |
make install-release
python setup.py sdist
python setup.py bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}