Upload Pylenium Package to pypi #49
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 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 |