Skip to content

Commit

Permalink
Merge pull request #2 from dmdhrumilmistry/add-pypi-publish-workflow
Browse files Browse the repository at this point in the history
add pypi-publish workflow file
  • Loading branch information
dmdhrumilmistry committed Nov 20, 2023
2 parents 1f62546 + 1a78256 commit 9f4414c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package to PyPi

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
cd src
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: src/dist
2 changes: 1 addition & 1 deletion breach_check/breach.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aiohttp.client_exceptions import ClientProxyConnectionError
from asyncio import run, ensure_future, gather
from asyncio import ensure_future, gather
from breach_check.http import AsyncRequests
from breach_check.logger import logger, console
from json import loads as json_loads
Expand Down

0 comments on commit 9f4414c

Please sign in to comment.