0.2.12 #31
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
name: Upload Python Package | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/project/kiui/ | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
# prepare distributions in dist/ | |
- name: Install dependencies and Build | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
python setup.py sdist bdist_wheel | |
# publish by trusted publishers (need to first setup in pypi.org projects-manage-publishing!) | |
# ref: https://github.com/marketplace/actions/pypi-publish | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |