-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pavi
committed
Jul 21, 2024
1 parent
b8d414a
commit 6f9f35e
Showing
3 changed files
with
18 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.", | ||
|