Skip to content

Upload Pylenium Package to pypi #48

Upload Pylenium Package to pypi

Upload Pylenium Package to pypi #48

name: Upload Pylenium Package to pypi
on:
release:
types: [created]
workflow_dispatch:
inputs:
version: # keeping this for eventaul autobump feature
description: "The version to publish to pypi"
required: false
default: "develop"
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Build distributions
run: |
pip install poetry
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1