Skip to content

Commit

Permalink
Use correct token publishing workflow for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipuniverse committed Nov 26, 2024
1 parent 1f58f9d commit 5bf8d35
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ jobs:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install poetry
- name: Build and publish
- name: Build
run: poetry build

- name: Mint pypi publisher token
id: pypi-token
uses: tsch/[email protected]

- name: Publish
run: |
poetry build
poetry publish
poetry publish -u __token__ -p '${{ steps.pypi-token.outputs.api-token }}'

0 comments on commit 5bf8d35

Please sign in to comment.