2021-01-07 21:16:24 +05:30
# This workflow will upload a Python Package using Twine when a release is created
2022-10-10 11:12:22 +00:00
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
2020-02-20 13:59:00 -05:00
2021-06-03 10:55:41 -04:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
2019-08-25 01:13:29 +01:00
name : Upload Python Package
2019-09-05 12:10:28 +01:00
on :
release :
2021-06-03 10:55:41 -04:00
types : [ published]
2019-08-25 01:13:29 +01:00
2022-02-14 12:47:03 +05:30
permissions :
contents : read
2019-08-25 01:13:29 +01:00
jobs :
deploy :
2020-02-21 12:55:06 -05:00
2019-08-25 01:13:29 +01:00
runs-on : ubuntu-latest
2020-02-21 12:55:06 -05:00
2019-08-25 01:13:29 +01:00
steps :
2022-03-28 13:10:48 -04:00
- uses : actions/checkout@v3
2019-08-25 01:13:29 +01:00
- name : Set up Python
2022-03-28 13:10:48 -04:00
uses : actions/setup-python@v3
2019-08-25 01:13:29 +01:00
with :
python-version : '3.x'
- name : Install dependencies
run : |
python -m pip install --upgrade pip
2021-06-03 10:55:41 -04:00
pip install build
- name : Build package
run : python -m build
- name : Publish package
uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with :
user : __token__
password : ${{ secrets.PYPI_API_TOKEN }}