diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e637d58 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + push: + branches: + - "master" + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +jobs: + deploy: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags') + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Build a binary wheel and a source tarball + run: pipx run build + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.pypi_token }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 229dd83..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: python -services: -- docker -sudo: true -python: -- 3.6 -script: -- bash ci/script.sh -before_deploy: -- bash ci/before_deploy.sh -deploy: - provider: pypi - user: akretion - distributions: sdist bdist_wheel - on: - tags: true - python: 3.6 - password: - secure: BeopvZRPkyDgLqMGh2F29cuNVQ95YlUd6gTv/NbxKUhVjiZxjRqpIpkG/G7K7EDucNouwyiMUZuZv/phcPEJO84eGY7WA915eDxmDGqF1E6N+QTwW3gA+/e3NqprXbTMPUNUsa3cn7VuBCD0w4AIZlcFig9Heu5xmPlnDxsRAbw= -notifications: - email: false diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh deleted file mode 100644 index 79cb51c..0000000 --- a/ci/before_deploy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e -python setup.py sdist -python setup.py bdist_wheel diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100644 index 75aa720..0000000 --- a/ci/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -e -pip install -U -r requirements-build.txt -pip install . -pip freeze diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100644 index bd5618c..0000000 --- a/ci/script.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -e -echo "Dummy but needed by travis" diff --git a/docky/cmd/base.py b/docky/cmd/base.py index 50f5691..a06eb56 100644 --- a/docky/cmd/base.py +++ b/docky/cmd/base.py @@ -15,7 +15,7 @@ class Docky(cli.Application): PROGNAME = "docky" - VERSION = '7.0.7' + VERSION = '7.1.0' SUBCOMMAND_HELPMSG = None def _run(self, cmd, retcode=FG):