Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi committed Jul 21, 2024
1 parent b8d414a commit 6f9f35e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

34 changes: 17 additions & 17 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Check if setup.py is modified
id: check_setup
run: |
if git diff --name-only HEAD^ HEAD | grep -q "setup.py"; then
echo "setup.py changed"
echo "::set-output name=changed::true"
else
echo "setup.py not changed"
echo "::set-output name=changed::false"
fi
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
python-version: '3.11'
if: steps.check_setup.outputs.changed == 'true'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine bump2version
- name: Increment version
run: |
git config --global user.email "[email protected]"
git config --global user.name "pavi"
bump2version patch # Change 'patch' to 'minor' or 'major' as needed
pip install setuptools wheel twine
if: steps.check_setup.outputs.changed == 'true'

- name: Build package
run: |
python setup.py sdist bdist_wheel
if: steps.check_setup.outputs.changed == 'true'

- name: Publish package
env:
TWINE_USERNAME: _token_
TWINE_PASSWORD: ${{ secrets.token }}
run: |
twine upload dist/*
- name: Push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "pavi"
git remote set-url origin https://x-access-token:${{ secrets.git_token }}@github.com/rekcah-pavi/geminikit.git
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.git_token }}
if: steps.check_setup.outputs.changed == 'true'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_long_description():

setup(
name="geminikit",
version="1.0.1",
version="1.0.2",
author="paviththanan",
author_email="[email protected]",
description="The python package that returns Response of Google Gemini through Cookies.",
Expand Down

0 comments on commit 6f9f35e

Please sign in to comment.