diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ccaa30..4dfacaf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,7 +31,7 @@ jobs: run: poetry install - name: Authenticate to PyPI - run: poetry http-basic.pypi ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }} + run: poetry config http-basic.pypi '${{ secrets.PYPI_USERNAME }}' '${{ secrets.PYPI_PASSWORD }}' - name: Release run: poetry run invoke release diff --git a/README.md b/README.md index 8f6b349..92cc277 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ # Twitter Video Tools [![PyPI version](https://badge.fury.io/py/twitter-video-tools.svg)](https://badge.fury.io/py/twitter-video-tools) +[![Package Release Status](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/release.yaml/badge.svg)](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/release.yaml) [![Test](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/test.yaml) [![codecov](https://codecov.io/gh/code-yeongyu/twitter_video_tools/branch/master/graph/badge.svg?token=97K8BBWOH7)](https://codecov.io/gh/code-yeongyu/twitter_video_tools) - - A multi-processing supported video downloader - supports downloading videos from twitter (or specific user from twitter) && monsnode. ## Install -### PIP +### with PIP ```sh pip install twitter-video-tools ``` -### Poetry +### with Poetry (Recommended) ```sh poetry add twitter-video-tools diff --git a/tasks.py b/tasks.py index ed853a2..7e71c7e 100644 --- a/tasks.py +++ b/tasks.py @@ -44,7 +44,7 @@ def release(context: Context) -> None: except UnexpectedExit as exception: with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file: pyproject_file.write(pyproject_string) - raise exception + raise exception from exception # recover to original with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file: