Skip to content

Delete publish.yml

Delete publish.yml #2

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Check out code
uses: actions/checkout@v3
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Build the package
- name: Build the package
run: |
python setup.py sdist bdist_wheel
# Publish to PyPI
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}