Skip to content

Fixes pypi packaging workflow auth #2

Fixes pypi packaging workflow auth

Fixes pypi packaging workflow auth #2

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*"
jobs:
build-and-publish:
runs-on:
ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry
run: |
poetry config virtualenvs.create false
- name: Build and publish to PyPI
run: |
poetry build
poetry publish