Skip to content

Commit

Permalink
Publish on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
mzks committed Nov 24, 2021
1 parent 8e08a63 commit 364d223
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]

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
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{secrets.PYPIUSER}}
TWINE_PASSWORD: ${{secrets.PYPIPASS}}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
5 changes: 1 addition & 4 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ python3 setup.py bdist_wheel

echo Done.
echo local install
echo 'python3 -m pip install dist/rubis-0.7.0-py3-none-any.whl --upgrade'

echo upload pypi
echo 'python3 -m twine upload --repository pypi dist/*'
echo 'python3 -m pip install dist/rubis-*.whl --upgrade'
2 changes: 1 addition & 1 deletion rubis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.7.0'
__version__ = '0.7.1'

from .cli import main
from .hash import deterministic_hash
Expand Down
2 changes: 1 addition & 1 deletion rubis/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main():
parser.add_argument('-v', '--version', action='store_true')

args = parser.parse_args()
version = '0.7.0'
version = '0.7.1'
if args.version:
print('rubis version : ' + version)
return
Expand Down

0 comments on commit 364d223

Please sign in to comment.