Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Publish to PyPI

Publish to PyPI #17

Workflow file for this run

name: Publish to PyPI
on:
create
jobs:
build-and-publish:
runs-on: ubuntu-latest
if: github.event.ref_type == 'tag'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
sh build.sh