From d61983bcf9a2c462fb23304136b82b0a1a16b0dd Mon Sep 17 00:00:00 2001 From: Daniel Luque Date: Fri, 29 May 2020 18:56:36 +0200 Subject: [PATCH] cd: set up PyPI publishing workflow --- .github/workflows/publish_to_pypi.yml | 27 +++++++++++++++++++++++++++ appveyor.yml | 6 +++--- pybooru/__init__.py | 2 +- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish_to_pypi.yml diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml new file mode 100644 index 0000000..830d674 --- /dev/null +++ b/.github/workflows/publish_to_pypi.yml @@ -0,0 +1,27 @@ +name: Publish on PyPI + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.7" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build Package + run: | + python setup.py sdist bdist_wheel + - name: Publish Package + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} diff --git a/appveyor.yml b/appveyor.yml index bc386e8..7c4289b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,9 +15,9 @@ environment: - PYTHON: "C:\\Python37-x64" PYTHON_VERSION: "3.7.5" PYTHON_ARCH: "64" - - PYTHON: "C:\\Python38-x64" - PYTHON_VERSION: "3.8.0" - PYTHON_ARCH: "64" + #- PYTHON: "C:\\Python38-x64" + # PYTHON_VERSION: "3.8.2" + # PYTHON_ARCH: "64" init: - ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %HOMEDRIVE%%HOMEPATH% diff --git a/pybooru/__init__.py b/pybooru/__init__.py index 97a1dde..d934227 100644 --- a/pybooru/__init__.py +++ b/pybooru/__init__.py @@ -17,7 +17,7 @@ resources -- Contains all resources for Pybooru. """ -__version__ = "4.1.1a1" +__version__ = "4.2.0b0" __license__ = "MIT" __source_url__ = "https://github.com/LuqueDaniel/pybooru" __author__ = "Daniel Luque "