diff --git a/.github/workflows/pypi-upload.yml b/.github/workflows/pypi-upload.yml new file mode 100644 index 0000000..ec77163 --- /dev/null +++ b/.github/workflows/pypi-upload.yml @@ -0,0 +1,33 @@ +name: Upload Python Package + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + upload: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: 3.8 + + # Install dependencies + - name: "Installs dependencies" + run: | + python3 -m pip install --upgrade pip + python3 -m pip install setuptools wheel twine build + + # Build and upload to PyPI + + - name: "Builds and uploads to PyPI" + run: | + python3 -m build + python3 -m twine upload dist/* + env: + TWINE_USERNAME: evan_slack + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file diff --git a/pyminion/__init__.py b/pyminion/__init__.py index adfbfc6..4356461 100644 --- a/pyminion/__init__.py +++ b/pyminion/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "0.1.4" +__version__ = "0.1.5" __author__ = "Evan Slack" diff --git a/setup.py b/setup.py index 4bf1c22..a2a58a5 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyminion", - version="0.1.4", + version="0.1.5", author="Evan Slack", author_email="evan.slack@outlook.com", description="Dominion but make it python", @@ -21,6 +21,8 @@ exclude=( "tests", "tests.*", + "examples", + "examples.*", ) ), python_requires=">=3.8",