Files

37 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2021-01-07 21:16:24 +05:30
# This workflow will upload a Python Package using Twine when a release is created
2020-02-20 13:59:00 -05:00
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# 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
on:
release:
types: [published]
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:
2019-12-24 14:22:22 -08:00
- uses: actions/checkout@v2
2019-08-25 01:13:29 +01:00
- name: Set up Python
2020-05-12 10:49:36 +02:00
uses: actions/setup-python@v2
2019-08-25 01:13:29 +01:00
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
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 }}