Skip to content

Commit 0521af7

Browse files
authored
Merge pull request #4 from indrajithi/feature/deploy
python publish workflow
2 parents 37d0928 + b9fe38b commit 0521af7

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
environment: publish-pip # Specify the environment here
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build twine
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package
29+
env:
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
32+
run: python -m twine upload --verbose dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="tiny-web-crawler", # PyPI package name
5-
version="0.1.1",
5+
version="0.1.3",
66
author="Indrajith Indraprastham",
77
author_email="indr4jith@gmail.com",
88
description="A simple and efficient web crawler in Python.",

0 commit comments

Comments
 (0)