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 "