diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..b28ed35 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -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 }} diff --git a/setup.py b/setup.py index 36cb35d..4786302 100644 --- a/setup.py +++ b/setup.py @@ -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',