Skip to content

Commit 866754a

Browse files
committed
chore: Update PyPI workflow and API URL
1 parent 1261bce commit 866754a

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/pypi.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Python Package to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install setuptools wheel twine
21+
- name: Build and publish
22+
env:
23+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

penify_hook/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
penify-cli -t {token} -gf {git_folder_path}
1818
"""
19-
api_url = 'http://localhost:8000/api'
19+
api_url = 'https://production-gateway.snorkell.ai/api'
2020

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

0 commit comments

Comments
 (0)