From e589fde8fb4a83579b8a4ebfdf33649af498ac02 Mon Sep 17 00:00:00 2001 From: ndkirillov Date: Thu, 10 Aug 2023 14:00:13 +0700 Subject: [PATCH 1/2] github action pip package added --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c6ab0a5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release Pessimistic Slitherin Package + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[distribute] + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* From 5b3abe79fb71702f96db0eccf6c4142d47b52c50 Mon Sep 17 00:00:00 2001 From: ndkirillov Date: Thu, 10 Aug 2023 14:01:48 +0700 Subject: [PATCH 2/2] corrected the versioning --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2236a25..18c6d44 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ long_description_content_type="text/markdown", url="https://github.com/pessimistic-io/slitherin", author="Pessimistic.io", - version="0.1.0", + version="0.2.1", package_dir={"":"."}, packages=find_packages(), license="AGPL-3.0",