Skip to content

Commit

Permalink
use action pypa/gh-action-pypi-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
abu-usama committed Oct 10, 2023
1 parent e1b7e7f commit 25cfa0a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cd_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 25cfa0a

Please sign in to comment.