Skip to content

Publish 1.0 to PyPI

Publish 1.0 to PyPI #2

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- '*'
concurrency: publish
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish to PyPI
run: |
python setup.py sdist bdist_wheel
python -m twine upload --repository testpypi dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}