diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c2d245a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish Python Package + +on: + release: + types: [published] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install dependencies + run: pip install build twine + + - name: Build package + run: python -m build + + - name: Upload to PyPI + run: twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index fae53d6..3040dd5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ -# github-ssh-key v0.4.1 +# github-ssh-key v0.4.2 ___github-ssh-key___ - GitHub ssh key manager. Console utility for creating, getting, testing, using public ssh keys for GitHub. *** +[![PyPI Downloads](https://static.pepy.tech/badge/github-ssh-key)](https://pepy.tech/projects/github-ssh-key) ![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/github-ssh-key) [![PyPI - Downloads](https://img.shields.io/pypi/dm/github-ssh-key?label=pypi%20downloads)](https://pypi.org/project/github-ssh-key/) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegionlab/github-ssh-key)](https://github.com/smartlegionlab/github-ssh-key/) @@ -162,6 +163,6 @@ To get help with commands, use: -------------------------------------------------------- Licensed under the terms of the BSD 3-Clause License (see LICENSE for details). - Copyright © 2018-2024, A.A. Suvorov + Copyright © 2018-2025, A.A. Suvorov All rights reserved. -------------------------------------------------------- diff --git a/github-ssh-key.py b/github-ssh-key.py index 15776cc..3b853d1 100644 --- a/github-ssh-key.py +++ b/github-ssh-key.py @@ -1,7 +1,7 @@ # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionlab diff --git a/github_ssh_key/__init__.py b/github_ssh_key/__init__.py index fea4a1b..da92794 100644 --- a/github_ssh_key/__init__.py +++ b/github_ssh_key/__init__.py @@ -1,10 +1,10 @@ # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionlab # -------------------------------------------------------- """GitHub ssh key manager.""" -__version__ = '0.4.1' +__version__ = '0.4.2' diff --git a/github_ssh_key/app.py b/github_ssh_key/app.py index b8f7b13..874cd67 100644 --- a/github_ssh_key/app.py +++ b/github_ssh_key/app.py @@ -1,7 +1,7 @@ # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionlab @@ -21,7 +21,7 @@ def cli(ctx): """ GitHub ssh key manager. - Copyright © 2018-2024, A.A. Suvorov; All rights reserved. + Copyright © 2018-2025, A.A. Suvorov; All rights reserved. https://github.com/smartlegionlab/ diff --git a/github_ssh_key/commander.py b/github_ssh_key/commander.py index 174c291..86e044e 100644 --- a/github_ssh_key/commander.py +++ b/github_ssh_key/commander.py @@ -1,7 +1,7 @@ # ------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # ------------------------------------------------------- # https://github.com/smartlegionlab diff --git a/github_ssh_key/manager.py b/github_ssh_key/manager.py index 828a6bf..94ae7f8 100644 --- a/github_ssh_key/manager.py +++ b/github_ssh_key/manager.py @@ -1,7 +1,7 @@ # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionlab @@ -18,5 +18,5 @@ class CliManager(Informer): title = "Smart Legion Lab" description = "Github Ssh Key Manager" url = "https://github.com/smartlegionlab" - copyright = "Copyright © 2018-2024, A.A. Suvorov" + copyright = "Copyright © 2018-2025, A.A. Suvorov" version = __version__ diff --git a/requirements/requirements-dev.txt b/requirements/requirements-dev.txt index a56c285..838dfc4 100644 --- a/requirements/requirements-dev.txt +++ b/requirements/requirements-dev.txt @@ -1,5 +1,6 @@ wheel -build +setuptools +twine tox click~=8.0.1 smartcliapp~=0.4.0 \ No newline at end of file diff --git a/setup.py b/setup.py index 9a7e5f4..d104af0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # -------------------------------------------------------- # Licensed under the terms of the BSD 3-Clause License # (see LICENSE for details). -# Copyright © 2018-2024, A.A. Suvorov +# Copyright © 2018-2025, A.A. Suvorov # All rights reserved. # -------------------------------------------------------- # https://github.com/smartlegionlab