Skip to content

Update pypi.yml

Update pypi.yml #1

Workflow file for this run

name: PyPI
on:
push:
branches:
- main
paths:
- 'setup.py'
- '.github/workflows/pypi.yml'
jobs:
build-and-publish:
runs-on: windows-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}