Skip to content

Commit

Permalink
Add github actions to auto release (#7)
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
einverne authored Jul 14, 2020
1 parent d057734 commit c337c29
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Python distributions to PyPI

on: push

jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Build dist
run: |
python setup.py sdist
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def long_desc():

setup(
name="douban-dl",
version="0.0.5",
version="0.0.6",
description="douban downloader, include album, celebrity",
long_description=long_desc(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit c337c29

Please sign in to comment.