Skip to content

Commit

Permalink
Merge pull request #4 from indrajithi/feature/deploy
Browse files Browse the repository at this point in the history
python publish workflow
  • Loading branch information
indrajithi authored Jun 12, 2024
2 parents 37d0928 + b9fe38b commit 0521af7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Python Package

on:
release:
types: [published]


permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
environment: publish-pip # Specify the environment here

steps:
- uses: actions/checkout@v4
- 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 twine
- name: Build package
run: python -m build
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: python -m twine upload --verbose dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="tiny-web-crawler", # PyPI package name
version="0.1.1",
version="0.1.3",
author="Indrajith Indraprastham",
author_email="[email protected]",
description="A simple and efficient web crawler in Python.",
Expand Down

0 comments on commit 0521af7

Please sign in to comment.