From 7ffff35d6da7fb8056c82b797d3b2173a517ff35 Mon Sep 17 00:00:00 2001 From: r0oike <49847986+r0oike@users.noreply.github.com> Date: Fri, 29 Jan 2021 14:21:22 +0800 Subject: [PATCH 1/3] Create python-publish.yml --- .github/workflows/python-publish.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..66af8c8 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,29 @@ +name: Upload Python Package + +on: +# workflow_dispatch + create: + tags: + - v* + +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 + pip install -r requirements.txt + - 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 0a41ff102c8d4a787c5070b4568b1882887cdfcc Mon Sep 17 00:00:00 2001 From: r0oike Date: Fri, 29 Jan 2021 14:57:13 +0800 Subject: [PATCH 2/3] set pypi.yml --- .github/workflows/{python-publish.yml => pypi.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{python-publish.yml => pypi.yml} (100%) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/pypi.yml similarity index 100% rename from .github/workflows/python-publish.yml rename to .github/workflows/pypi.yml From 3157a494c57ea8855bbe1f40561bfa4e1ac20e88 Mon Sep 17 00:00:00 2001 From: r0oike Date: Fri, 29 Jan 2021 15:01:05 +0800 Subject: [PATCH 3/3] test pypi --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 127bd14..6f97226 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='zoomeye', - version='2.0.3.1', + version='2.0.3.2', description='Python library and command-line tool for ZoomEye (https://www.zoomeye.org/doc)', long_description=README, long_description_content_type='text/x-rst',