Skip to content

Commit

Permalink
Fixes pypi packaging workflow auth
Browse files Browse the repository at this point in the history
  • Loading branch information
rand-net committed Feb 8, 2024
1 parent acc8f3b commit 11fb9fc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ on:

jobs:
build-and-publish:
runs-on: ubuntu-latest

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.8
python-version: 3.11

- name: Install Poetry
run: |
Expand All @@ -27,8 +32,6 @@ jobs:
poetry config virtualenvs.create false
- name: Build and publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry build
poetry publish

0 comments on commit 11fb9fc

Please sign in to comment.