Skip to content

Deploy to PyPI on Release #11

Deploy to PyPI on Release

Deploy to PyPI on Release #11

Workflow file for this run

name: Deploy to PyPI on Release
on:
release:
types:
- created
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Flit
run: pip install flit
- name: Build and Publish
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
flit build
flit publish