Skip to content

🀚 version bump #4

🀚 version bump

🀚 version bump #4

name: Upload Python Package To PyPi
on:
push:
branches:
- main
tags:
- 'v[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
environment:
name: pypi
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install Poetry Action
uses: snok/[email protected]
with:
virtualenvs-create: false
- name: Run Black
run: |
poetry add --dev black
poetry run black . --check
# Continue even if Black finds unformatted code
continue-on-error: true
- name: Poetry build
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1