Skip to content

Commit 82917b4

Browse files
committed
Fix pypi publishing
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 6b15d25 commit 82917b4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
packages: write
15+
id-token: write
1516
steps:
1617
- uses: actions/checkout@v4
1718
with:
@@ -71,10 +72,10 @@ jobs:
7172
- name: Release PyPI
7273
if: startsWith(github.ref, 'refs/tags/')
7374
run: |
74-
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
75-
env:
76-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
77-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
75+
poetry build --no-cache
76+
- name: Release PyPI
77+
if: startsWith(github.ref, 'refs/tags/')
78+
uses: pypa/gh-action-pypi-publish@release/v1
7879
- name: Build Anaconda
7980
run: |
8081
mkdir /tmp/conda-out

0 commit comments

Comments
 (0)