Skip to content

Commit

Permalink
Merge pull request #53 from evanofslack/github-action
Browse files Browse the repository at this point in the history
Create pypi packaging workflow
  • Loading branch information
evanofslack authored Nov 18, 2021
2 parents cda309c + 2d8e900 commit 0f96599
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion pyminion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

__version__ = "0.1.4"
__version__ = "0.1.5"
__author__ = "Evan Slack"


Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -21,6 +21,8 @@
exclude=(
"tests",
"tests.*",
"examples",
"examples.*",
)
),
python_requires=">=3.8",
Expand Down

0 comments on commit 0f96599

Please sign in to comment.