Skip to content

Commit

Permalink
Merge pull request #57 from SchrodingersGat/pypi-push
Browse files Browse the repository at this point in the history
Auto push to PyPi on release
  • Loading branch information
SchrodingersGat authored Apr 16, 2021
2 parents 68dc908 + 0c8cad0 commit e70efae
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Publish to PyPi package index

name: PIP Publish

on:
release:
types: [published]

jobs:

publish:
name: Publish to PyPi
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -U -r requirements.txt
pip install --upgrade wheel setuptools twine
- name: Build Binary
run: |
python3 setup.py sdist bdist_wheel --universal
- name: Publish
run: |
python3 -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_REPOSITORY: inventree
2 changes: 1 addition & 1 deletion inventree/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import logging

INVENTREE_PYTHON_VERSION = "0.1.3"
INVENTREE_PYTHON_VERSION = "0.1.4"


class InventreeObject():
Expand Down

0 comments on commit e70efae

Please sign in to comment.