Skip to content

Commit

Permalink
chore: Update PyPI workflow and API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sumansaurabh committed Aug 24, 2024
1 parent 1261bce commit 866754a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Python Package to PyPI

on:
push:
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion penify_hook/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
penify-cli -t {token} -gf {git_folder_path}
"""
api_url = 'http://localhost:8000/api'
api_url = 'https://production-gateway.snorkell.ai/api'

def install_git_hook(location, token):
hooks_dir = Path(location) / ".git/hooks"
Expand Down

0 comments on commit 866754a

Please sign in to comment.