From 25cfa0a2328075f2cc4710f62ecd5ebfc9e50efa Mon Sep 17 00:00:00 2001 From: abu usama Date: Tue, 10 Oct 2023 12:09:40 +0500 Subject: [PATCH] use action `pypa/gh-action-pypi-publish` --- .github/workflows/cd_pypi.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd_pypi.yaml b/.github/workflows/cd_pypi.yaml index 7b107ad..9de381e 100644 --- a/.github/workflows/cd_pypi.yaml +++ b/.github/workflows/cd_pypi.yaml @@ -7,6 +7,13 @@ jobs: runs-on: ubuntu-latest + environment: + name: release + url: https://pypi.org/project/ipinfo-db + + permissions: + id-token: write + steps: - name: Checkout uses: actions/checkout@v3 @@ -23,6 +30,4 @@ jobs: run: python setup.py sdist - name: Publish package - run: | - pip install twine - twine upload --non-interactive dist/* + uses: pypa/gh-action-pypi-publish@release/v1