Skip to content

[feat] Revamp CLI and add CLI tests (#44) #12

[feat] Revamp CLI and add CLI tests (#44)

[feat] Revamp CLI and add CLI tests (#44) #12

name: Upload Python Package To PyPi
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]'
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1.3.3
with:
virtualenvs-create: false
- name: Poetry build
run: |
poetry build
- name: Publish package distributions to PyPi
uses: pypa/gh-action-pypi-publish@release/v1