PyPI #17
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 appletree after a release (or manually). | |
## Mostly based on https://github.com/marketplace/actions/pypi-publish | |
name: PyPI | |
on: | |
workflow_dispatch: | |
release: | |
types: [ created ] | |
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 wheel | |
- name: Build package | |
run: python setup.py sdist bdist_wheel | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |