PyPI #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PyPI upload outsource after a release (or manually). | |
## Mostly based on https://github.com/marketplace/actions/pypi-publish | |
name: PyPI | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
# Setup steps | |
- name: Setup python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.9' | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: pip install build | |
- name: Build package | |
run: python -m build | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |