-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct token publishing workflow for poetry
See discussion at python-poetry/poetry#7940 (comment)
- Loading branch information
1 parent
1f58f9d
commit 5bf8d35
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}' |