Skip to content

Commit

Permalink
Merge pull request #48 from LuqueDaniel/prepare-release
Browse files Browse the repository at this point in the history
cd: set up PyPI publishing workflow
  • Loading branch information
LuqueDaniel authored May 29, 2020
2 parents 0948d6f + d61983b commit e9b8188
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down
2 changes: 1 addition & 1 deletion pybooru/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <danielluque14[at]gmail[dot]com>"
Expand Down

0 comments on commit e9b8188

Please sign in to comment.