Skip to content

PyPI

PyPI #17

Workflow file for this run

# 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